Remove node apps after stopping daemon
This commit is contained in:
parent
0e7efa7766
commit
3942cd7c4d
|
@ -579,14 +579,6 @@ echo ' fi'
|
||||||
echo '}'
|
echo '}'
|
||||||
echo ''
|
echo ''
|
||||||
echo "function remove_${app_name} {"
|
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 " nginx_dissite \"\$${app_name_upper}_DOMAIN_NAME\""
|
||||||
echo " remove_certs \"\$${app_name_upper}_DOMAIN_NAME\""
|
echo " remove_certs \"\$${app_name_upper}_DOMAIN_NAME\""
|
||||||
echo ''
|
echo ''
|
||||||
|
@ -598,6 +590,14 @@ if [ $app_daemon ]; then
|
||||||
echo ' fi'
|
echo ' fi'
|
||||||
echo " userdel -r ${app_name}"
|
echo " userdel -r ${app_name}"
|
||||||
fi
|
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
|
if [ $app_webui ]; then
|
||||||
echo ''
|
echo ''
|
||||||
echo " if [ -d \"/var/www/\$${app_name_upper}_DOMAIN_NAME\" ]; then"
|
echo " if [ -d \"/var/www/\$${app_name_upper}_DOMAIN_NAME\" ]; then"
|
||||||
|
|
Loading…
Reference in New Issue