From ab489ca16530cfae1177ae922890cd41b13c4ba5 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Wed, 1 Oct 2014 15:12:50 +0200 Subject: [PATCH] Revert "MT#7505 Add .gitreview file" This reverts commit 4a98f838d11f26008acddf1758822ca4ebceb27f. --- .gitreview | 4 --- debian/ngcp-schema.postinst | 52 +++++++++++++------------------------ debian/ngcp-schema.postrm | 20 +------------- 3 files changed, 19 insertions(+), 57 deletions(-) delete mode 100644 .gitreview diff --git a/.gitreview b/.gitreview deleted file mode 100644 index ae682142..00000000 --- a/.gitreview +++ /dev/null @@ -1,4 +0,0 @@ -[gerrit] -host=gerrit.mgm.sipwise.com -port=29418 -project=ngcp-schema diff --git a/debian/ngcp-schema.postinst b/debian/ngcp-schema.postinst index 845b515b..d2bb958b 100755 --- a/debian/ngcp-schema.postinst +++ b/debian/ngcp-schema.postinst @@ -2,43 +2,27 @@ set -e -if [ -e /etc/default/ngcp-roles ]; then - . /etc/default/ngcp-roles -else - NGCP_IS_MGMT="yes" -fi - -do_reload() -{ - if [ "${NGCP_IS_MGMT}" != "yes" ]; then - echo "no mgmt role detected. Skip ngcp-panel and ngcp-www-csc reloads" - return - fi - - if [ -x /etc/init.d/ngcp-panel ] ; then - if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then - echo "Force-reloading ngcp-panel to handle schema changes" - invoke-rc.d ngcp-panel force-reload || exit $? - else - echo "Force-reloading ngcp-panel to handle schema changes" - /etc/init.d/ngcp-panel force-reload || exit $? +case "$1" in + configure) + if [ -x /etc/init.d/ngcp-panel ] ; then + if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then + echo "Force-reloading ngcp-panel to handle schema changes" + invoke-rc.d ngcp-panel force-reload || exit $? + else + echo "Force-reloading ngcp-panel to handle schema changes" + /etc/init.d/ngcp-panel force-reload || exit $? + fi fi - fi - if [ -x /etc/init.d/ngcp-www-csc ] ; then - if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then - echo "Force-reloading ngcp-www-csc to handle schema changes" - invoke-rc.d ngcp-www-csc force-reload || exit $? - else - echo "Force-reloading ngcp-www-csc to handle schema changes" - /etc/init.d/ngcp-www-csc force-reload || exit $? + if [ -x /etc/init.d/ngcp-www-csc ] ; then + if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then + echo "Force-reloading ngcp-www-csc to handle schema changes" + invoke-rc.d ngcp-www-csc force-reload || exit $? + else + echo "Force-reloading ngcp-www-csc to handle schema changes" + /etc/init.d/ngcp-www-csc force-reload || exit $? + fi fi - fi -} - -case "$1" in - configure) - do_reload ;; abort-upgrade|abort-remove|abort-deconfigure) diff --git a/debian/ngcp-schema.postrm b/debian/ngcp-schema.postrm index 188f38af..7db0518e 100755 --- a/debian/ngcp-schema.postrm +++ b/debian/ngcp-schema.postrm @@ -2,19 +2,7 @@ set -e -if [ -e /etc/default/ngcp-roles ]; then - . /etc/default/ngcp-roles -else - NGCP_IS_MGMT="yes" -fi - -do_reload() -{ - if [ "${NGCP_IS_MGMT}" != "yes" ]; then - echo "no mgmt role detected. Skip ngcp-panel and ngcp-www-csc reloads" - return - fi - +if [ "$1" = "remove" ]; then if [ -x /etc/init.d/ngcp-panel ] ; then if [ -x "$(which invoke-rc.d 2>/dev/null)" ]; then echo "Force-reloading ngcp-panel to handle schema changes" @@ -34,10 +22,4 @@ do_reload() /etc/init.d/ngcp-www-csc force-reload || exit $? fi fi -} - -if [ "$1" = "remove" ]; then - do_reload fi - -exit 0