Added Priv Raise at start
This commit is contained in:
parent
5b943d0dcd
commit
6c10a675e6
3
setup.sh
3
setup.sh
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
echo "This Script has to be ran as Sudo"
|
||||||
|
sudo -v
|
||||||
if [ -d "/etc/update-motd.d/old" ];then
|
if [ -d "/etc/update-motd.d/old" ];then
|
||||||
bash -c "sudo rm /etc/update-motd.d/00-custom"
|
bash -c "sudo rm /etc/update-motd.d/00-custom"
|
||||||
bash -c 'sudo wget https://git.ncltech.co.uk/api/v1/repos/Phil/update-motd.d/raw/00-custom -O /etc/update-motd.d/00-custom'
|
bash -c 'sudo wget https://git.ncltech.co.uk/api/v1/repos/Phil/update-motd.d/raw/00-custom -O /etc/update-motd.d/00-custom'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user