Squashed initial commit
This commit is contained in:
27
.old/script-install-motd.bk
Executable file
27
.old/script-install-motd.bk
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/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"
|
||||
|
||||
systemdir="/etc/update-mot.d"
|
||||
|
||||
[[ ! -d "$systemdir" ]] && mkdir -p "$systemdir"
|
||||
|
||||
cd motd || exit $?
|
||||
|
||||
for script in "${scripts[@]}"; do
|
||||
echo "$script"
|
||||
cp "$script" "$systemdir"
|
||||
done
|
||||
|
||||
cd ..
|
||||
|
||||
rm -rf motd
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user