diff --git a/src/freedombone-template b/src/freedombone-template index d783e3e8..0039ded5 100755 --- a/src/freedombone-template +++ b/src/freedombone-template @@ -703,12 +703,11 @@ if [[ "$app_php" == 'yes' ]]; then echo '' 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 + echo " if [ ! \"\$${app_name_upper}_DOMAIN_NAME\" ]; then" + echo " echo \$'No domain name was given'" + echo ' exit 3568356' + echo ' fi' echo '' echo " if [ -d \"/var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs\" ]; then" echo " rm -rf \"/var/www/\$${app_name_upper}_DOMAIN_NAME/htdocs\""