ZP-1029 add instructions if z-push-admin failed. Released under the Affero GNU...

ZP-1029 add instructions if z-push-admin failed. Released under the Affero GNU General Public License (AGPL) version 3.

added proof of concept code. will currently not be executed since fixstates does not produce an exit code of != 0
parent 6c1f546a
......@@ -6,6 +6,13 @@
case "$1" in
configure)
/usr/local/sbin/z-push-admin -a fixstates
if [ $? -ne 0 ]; then
YELLOW='\033[0;33m'
NC='\033[0m' # No Color
echo -e "${YELLOW}When upgrading from an earlier version you need to run 'z-push-admin -a fixstates'.\n
It seems the execution on setup has failed (see error above). Please fix the issue and run the command manually.\n
More information at https://wiki.z-hub.io/x/R4Ea${NC}\n"
fi
;;
abort-upgrade|abort-remove|abort-deconfigure)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment