From 82dabcaf05150b6c533f8a354589064bd18a03b8 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 6 Feb 2018 18:46:47 +0000 Subject: [PATCH] Remove daemon if one is present --- src/freedombone-template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/freedombone-template b/src/freedombone-template index c9e27f80..e5989db4 100755 --- a/src/freedombone-template +++ b/src/freedombone-template @@ -484,6 +484,12 @@ fi echo " nginx_dissite \$${app_name_upper}_DOMAIN_NAME" echo " remove_certs \$${app_name_upper}_DOMAIN_NAME" echo '' +echo " if [ -f /etc/systemd/system/${app_name}.service ]; then" +echo " systemctl stop ${app_name}" +echo " systemctl disable ${app_name}" +echo " rm /etc/systemd/system/${app_name}.service" +echo ' fi' +echo '' echo " if [ -d /var/www/\$${app_name_upper}_DOMAIN_NAME ]; then" echo " rm -rf /var/www/\$${app_name_upper}_DOMAIN_NAME" echo ' fi'