diff --git a/AppendCMS.sh b/AppendCMS.sh index 35a34ff..0e0063b 100644 --- a/AppendCMS.sh +++ b/AppendCMS.sh @@ -245,4 +245,4 @@ systemctl reload fail2ban ##-------## msg " Added CMS!" -for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; done \ No newline at end of file +for f in /etc/update-motd.d/51*; do bash $f; done \ No newline at end of file diff --git a/AppendModule.sh b/AppendModule.sh index b54c745..11dcc27 100644 --- a/AppendModule.sh +++ b/AppendModule.sh @@ -259,4 +259,4 @@ done ##-------## msg " Added Module!" -for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; done \ No newline at end of file +for f in /etc/update-motd.d/51*; do bash $f; done \ No newline at end of file diff --git a/installer.sh b/installer.sh index dd628ec..93357c1 100644 --- a/installer.sh +++ b/installer.sh @@ -585,4 +585,4 @@ systemctl reload sshd fail2ban postfix postfix@- ##-------## msg " Done installing!" -for f in /etc/update-motd.d/51*; do [ -e "$f" ] && bash /etc/update-motd.d/51*; done \ No newline at end of file +for f in /etc/update-motd.d/51*; do bash $f; done \ No newline at end of file