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'