Fixed oopsie's

This commit is contained in:
2020-07-30 15:22:26 +02:00
parent 8d10e8b853
commit 3b8c214dec
6 changed files with 16 additions and 10 deletions

View File

@@ -81,7 +81,6 @@ if [ $IMODE = n ]; then
[[ -d "/var/www/"$domain"/html" ]] && msg " This domain already exists on this server, Exiting" 8 78 && exit;
if (whiptail --title "Config" --yesno " Does www.${domain} exist in DNS" 8 78); then domainwww=1; else domainwww=0; fi
if (whiptail --title "Set sitename?" --yesno "Set sitename to ${domain//./_} ?" 8 78); then
echo "Yes"
sitename=${domain//./_}
else
while true; do
@@ -117,8 +116,8 @@ if [ $IMODE = l ]; then
done
read -p "Set sitename to ${domain//./_}? (y/n)" choice
case "$choice" in
y|Y ) echo "yes";sitename=${domain//./_};;
n|N ) echo "no";
y|Y ) sitename=${domain//./_};;
n|N ) echo "";
while true; do
echo "Please enter sitename, Must NOT contain special characters, except: _";read sitename
if [[ $sitename == *['!'@#\$%^\&*()+,.]* ]] || [ -z "$sitename" ]
@@ -234,5 +233,5 @@ fi
# Done #
##-------##
msg " Added CMS!"
bash /etc/update-motd.d/51*
msg " Added CMS!"