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

@@ -239,8 +239,8 @@ while true; do
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" ]
@@ -578,5 +578,5 @@ systemctl reload sshd postfix postfix@-
# Done #
##-------##
msg " Done installing!"
bash /etc/update-motd.d/51*
msg " Done installing!"