diff --git a/AppendCMS.sh b/AppendCMS.sh index 87380b7..e22ccc0 100644 --- a/AppendCMS.sh +++ b/AppendCMS.sh @@ -234,4 +234,4 @@ fi ##-------## msg " Added CMS!" -if [ -f /etc/update-motd.d/51* ]; then bash /etc/update-motd.d/51*;fi \ No newline at end of file +for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; break; done \ No newline at end of file diff --git a/AppendModule.sh b/AppendModule.sh index 8aec16d..a83c2d5 100644 --- a/AppendModule.sh +++ b/AppendModule.sh @@ -259,4 +259,4 @@ done ##-------## msg " Added Module!" -if [ -f /etc/update-motd.d/51* ]; then bash /etc/update-motd.d/51*;fi +for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; break; done \ No newline at end of file diff --git a/CMS/wordpress/MotdWordpress b/CMS/wordpress/MotdWordpress index 5fd44c8..4e5a29b 100644 --- a/CMS/wordpress/MotdWordpress +++ b/CMS/wordpress/MotdWordpress @@ -1,5 +1,5 @@ #!/bin/sh red='\e[1;31m%s\e[0m\n' printf "\n" -printf $red "Please run wordpress-init.sh after the first wordpress login" +printf $red "Please run bash ~/wordpress-init.sh after the first wordpress login" printf "\n" \ No newline at end of file diff --git a/installer.sh b/installer.sh index 7ec9543..b583c3d 100644 --- a/installer.sh +++ b/installer.sh @@ -579,4 +579,4 @@ systemctl reload sshd postfix postfix@- ##-------## msg " Done installing!" -if [ -f /etc/update-motd.d/51* ]; then bash /etc/update-motd.d/51*;fi +for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; break; done