From d531b27b0b35d8b8d56681f6f48b42a89365a12a Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Fri, 31 Jul 2020 12:08:50 +0200 Subject: [PATCH] fixed displaying setup notify at end of setup --- AppendCMS.sh | 2 +- AppendModule.sh | 2 +- CMS/wordpress/MotdWordpress | 2 +- installer.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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