From ca4bba707f7e61e00ee697bcad1b07aa9a7bc060 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Tue, 19 Oct 2021 19:00:51 -0400 Subject: [PATCH] finish script-install-motd --- script-install-motd | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/script-install-motd b/script-install-motd index f4ac2832..75d8fe47 100755 --- a/script-install-motd +++ b/script-install-motd @@ -1,6 +1,10 @@ #!/usr/bin/env bash # Install motd scripts +[[ -f functions ]] && . functions || exit 1 + +is_root + scripts=("10-hostname-color" "20-sysinfo" "35-diskspace" "36-diskstatus" "40-services" "50-fail2ban") git clone "https://github.com/yboetz/motd.git" @@ -12,9 +16,12 @@ systemdir="/etc/update-mot.d" cd motd || exit $? for script in "${scripts[@]}"; do + echo "$script" cp "$script" "$systemdir" done -#rm -rf motd +cd .. + +rm -rf motd exit $? \ No newline at end of file