Files
hartman-server/script-install-motd
2021-10-19 18:56:11 -04:00

20 lines
387 B
Bash
Executable File

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