Files
hartman-server/script-install-motd
2021-10-19 16:36:21 -04:00

18 řádky
373 B
Bash
Spustitelný soubor

#!/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"
for script in ./motd/"${scripts[@]}"; do
cp "$script" "$systemdir"
done
rm -rf motd
exit $?