finish script-install-motd
This commit is contained in:
@@ -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 $?
|
||||
Reference in New Issue
Block a user