beautify & implemented test output
This commit is contained in:
parent
ebd4624288
commit
e971e92d84
1 changed files with 16 additions and 6 deletions
22
install.sh
22
install.sh
|
|
@ -2,10 +2,20 @@
|
|||
|
||||
gitrepo="https://git.waggeling.net/kai-waggeling/linux-motd"
|
||||
|
||||
apt install figlet
|
||||
echo " installing figlet..."
|
||||
apt install figlet &> /dev/null
|
||||
|
||||
rm /etc/update-motd.d/10-uname
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/10-hostname -O /etc/update-motd.d/10-hostname
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/20-sysinfo -O /etc/update-motd.d/20-sysinfo
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/30-disks -O /etc/update-motd.d/30-disks
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/40-docker -O /etc/update-motd.d/40-docker
|
||||
echo " deleting default motd..."
|
||||
rm /etc/update-motd.d/10-uname &> /dev/null
|
||||
|
||||
echo " downloading new scripts..."
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/10-hostname -O /etc/update-motd.d/10-hostname &> /dev/null
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/20-sysinfo -O /etc/update-motd.d/20-sysinfo &> /dev/null
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/30-disks -O /etc/update-motd.d/30-disks &> /dev/null
|
||||
wget ${gitrepo}/raw/branch/main/%20update-motd.d/40-docker -O /etc/update-motd.d/40-docker &> /dev/null
|
||||
|
||||
echo " finished..."
|
||||
echo ""
|
||||
echo " test output:"
|
||||
|
||||
run-parts /etc/update-motd.d/
|
||||
Loading…
Add table
Add a link
Reference in a new issue