Domain check only needed if app has web ui

This commit is contained in:
Bob Mottram 2018-04-08 18:02:09 +01:00
parent b8d3f08437
commit 57ab82d129
1 changed files with 4 additions and 5 deletions

View File

@ -703,12 +703,11 @@ if [[ "$app_php" == 'yes' ]]; then
echo '' echo ''
fi fi
echo " if [ ! \"\$${app_name_upper}_DOMAIN_NAME\" ]; then"
echo " echo \$'No domain name was given'"
echo ' exit 3568356'
echo ' fi'
if [ $app_webui ]; then if [ $app_webui ]; then
echo " if [ ! \"\$${app_name_upper}_DOMAIN_NAME\" ]; then"
echo " echo \$'No domain name was given'"
echo ' exit 3568356'
echo ' fi'
echo '' echo ''
echo " if [ -d \"/var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs\" ]; then" echo " if [ -d \"/var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs\" ]; then"
echo " rm -rf \"/var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs\"" echo " rm -rf \"/var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs\""