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