diff --git a/BuildFiles/Packaging/templates/postinst-backend.template b/BuildFiles/Packaging/templates/postinst-backend.template index 9018c527..0f82152f 100644 --- a/BuildFiles/Packaging/templates/postinst-backend.template +++ b/BuildFiles/Packaging/templates/postinst-backend.template @@ -1,6 +1,7 @@ #!/bin/bash -#echo "Swarmops post-installation script running" +#echo "DEBUG: Executing post-installation script, swarmops-backend" + #make sure some directories exist mkdir -p /var/lib/swarmops/upload #todo: check for database upgrade @@ -18,3 +19,5 @@ else systemctl start swarmops-backend fi +echo "DEBUG: Exiting post-install script, swarmops-backend" + diff --git a/BuildFiles/Packaging/templates/postinst-frontend.template b/BuildFiles/Packaging/templates/postinst-frontend.template index d6122e18..d25b55cd 100644 --- a/BuildFiles/Packaging/templates/postinst-frontend.template +++ b/BuildFiles/Packaging/templates/postinst-frontend.template @@ -1,5 +1,7 @@ #!/bin/bash +echo "DEBUG: Executing post-install script, swarmops-frontend" + # make sure the upload folder exists and is writeable by www-data # do not make any changes to an already existing folder @@ -88,3 +90,5 @@ fi # Always end a frontend update with an Apache reload to clear caches # /etc/init.d/apache2 reload + +echo "DEBUG: Exiting post-install script, swarmops-frontend" diff --git a/BuildFiles/Packaging/templates/preinst-frontend.template b/BuildFiles/Packaging/templates/preinst-frontend.template index f58eb7a5..fb4e2da8 100644 --- a/BuildFiles/Packaging/templates/preinst-frontend.template +++ b/BuildFiles/Packaging/templates/preinst-frontend.template @@ -4,6 +4,8 @@ # (It's very rude to shut down services without asking first like this, but even more rude of the lib-mod-mono # installer to just bloody hang.) +echo "DEBUG: Executing pre-install script, swarmops-frontend" + if [ ! -e /etc/swarmops/database.config ]; then if [ -e /etc/init.d/apache2 ]; then if [ /etc/init.d/apache2 status > /dev/null ]; then @@ -14,4 +16,5 @@ if [ ! -e /etc/swarmops/database.config ]; then fi fi +echo "DEBUG: Exiting pre-install script, swarmops-frontend" diff --git a/BuildFiles/Packaging/templates/prerm-backend.template b/BuildFiles/Packaging/templates/prerm-backend.template index 86fa849e..b8ef1f3e 100644 --- a/BuildFiles/Packaging/templates/prerm-backend.template +++ b/BuildFiles/Packaging/templates/prerm-backend.template @@ -1,5 +1,7 @@ #! /bin/bash +echo "DEBUG: Executing pre-remove script, swarmops-backend" + # Different paths for systemd and upstart if [ -z $(pidof systemd) ]; then @@ -10,4 +12,4 @@ else systemctl disable swarmops-backend fi - +echo "DEBUG: Exiting pre-remove script, swarmops-backend"