finish script-install-motd
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Install motd scripts
|
# Install motd scripts
|
||||||
|
|
||||||
|
[[ -f functions ]] && . functions || exit 1
|
||||||
|
|
||||||
|
is_root
|
||||||
|
|
||||||
scripts=("10-hostname-color" "20-sysinfo" "35-diskspace" "36-diskstatus" "40-services" "50-fail2ban")
|
scripts=("10-hostname-color" "20-sysinfo" "35-diskspace" "36-diskstatus" "40-services" "50-fail2ban")
|
||||||
|
|
||||||
git clone "https://github.com/yboetz/motd.git"
|
git clone "https://github.com/yboetz/motd.git"
|
||||||
@@ -12,9 +16,12 @@ systemdir="/etc/update-mot.d"
|
|||||||
cd motd || exit $?
|
cd motd || exit $?
|
||||||
|
|
||||||
for script in "${scripts[@]}"; do
|
for script in "${scripts[@]}"; do
|
||||||
|
echo "$script"
|
||||||
cp "$script" "$systemdir"
|
cp "$script" "$systemdir"
|
||||||
done
|
done
|
||||||
|
|
||||||
#rm -rf motd
|
cd ..
|
||||||
|
|
||||||
|
rm -rf motd
|
||||||
|
|
||||||
exit $?
|
exit $?
|
||||||
Reference in New Issue
Block a user