Remove node apps after stopping daemon

This commit is contained in:
Bob Mottram 2018-04-08 17:31:45 +01:00
parent 0e7efa7766
commit 3942cd7c4d
1 changed files with 8 additions and 8 deletions

View File

@ -579,14 +579,6 @@ echo ' fi'
echo '}'
echo ''
echo "function remove_${app_name} {"
if [ "$app_nodeapp" ]; then
echo " npm uninstall -g ${app_nodeapp}"
echo ''
fi
if [[ "$app_node" == 'yes' ]]; then
echo " remove_nodejs ${app_name}"
echo ''
fi
echo " nginx_dissite \"\$${app_name_upper}_DOMAIN_NAME\""
echo " remove_certs \"\$${app_name_upper}_DOMAIN_NAME\""
echo ''
@ -598,6 +590,14 @@ if [ $app_daemon ]; then
echo ' fi'
echo " userdel -r ${app_name}"
fi
if [ "$app_nodeapp" ]; then
echo " npm uninstall -g ${app_nodeapp}"
echo ''
fi
if [[ "$app_node" == 'yes' ]]; then
echo " remove_nodejs ${app_name}"
echo ''
fi
if [ $app_webui ]; then
echo ''
echo " if [ -d \"/var/www/\$${app_name_upper}_DOMAIN_NAME\" ]; then"