finish script-install-motd

This commit is contained in:
2021-10-19 19:00:51 -04:00
parent 66f2f7ab14
commit ca4bba707f

View File

@@ -1,6 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Install motd scripts # Install motd scripts
[[ -f functions ]] && . functions || exit 1
is_root
scripts=("10-hostname-color" "20-sysinfo" "35-diskspace" "36-diskstatus" "40-services" "50-fail2ban") scripts=("10-hostname-color" "20-sysinfo" "35-diskspace" "36-diskstatus" "40-services" "50-fail2ban")
git clone "https://github.com/yboetz/motd.git" git clone "https://github.com/yboetz/motd.git"
@@ -12,9 +16,12 @@ systemdir="/etc/update-mot.d"
cd motd || exit $? cd motd || exit $?
for script in "${scripts[@]}"; do for script in "${scripts[@]}"; do
echo "$script"
cp "$script" "$systemdir" cp "$script" "$systemdir"
done done
#rm -rf motd cd ..
rm -rf motd
exit $? exit $?