Fixed oopsie's
This commit is contained in:
@@ -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!"
|
||||
Reference in New Issue
Block a user