web dependent

This commit is contained in:
Bob Mottram 2018-04-08 17:32:24 +01:00
parent 3942cd7c4d
commit 85cbecbc45
1 changed files with 5 additions and 3 deletions

View File

@ -579,9 +579,11 @@ echo ' fi'
echo '}'
echo ''
echo "function remove_${app_name} {"
echo " nginx_dissite \"\$${app_name_upper}_DOMAIN_NAME\""
echo " remove_certs \"\$${app_name_upper}_DOMAIN_NAME\""
echo ''
if [ $app_webui ]; then
echo " nginx_dissite \"\$${app_name_upper}_DOMAIN_NAME\""
echo " remove_certs \"\$${app_name_upper}_DOMAIN_NAME\""
echo ''
fi
if [ $app_daemon ]; then
echo " if [ -f /etc/systemd/system/${app_name}.service ]; then"
echo " systemctl stop ${app_name}"