Remove node apps after stopping daemon
This commit is contained in:
parent
0e7efa7766
commit
3942cd7c4d
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue