This commit is contained in:
2021-10-19 16:36:21 -04:00
parent 8dbb3d0bb3
commit 64f6c11503
8 changed files with 448 additions and 33 deletions

View File

@@ -5,8 +5,12 @@ scripts=("10-hostname-color" "20-sysinfo" "35-diskspace" "36-diskstatus" "40-ser
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" /etc/update-motd.d/
cp "$script" "$systemdir"
done
rm -rf motd