Remove node app in template

This commit is contained in:
Bob Mottram 2018-04-08 17:22:37 +01:00
parent d7780f284d
commit 0e7efa7766
1 changed files with 4 additions and 0 deletions

View File

@ -579,6 +579,10 @@ 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 if [[ "$app_node" == 'yes' ]]; then
echo " remove_nodejs ${app_name}" echo " remove_nodejs ${app_name}"
echo '' echo ''