Added Priv Raise at start

This commit is contained in:
Phil 2022-06-26 20:46:02 +01:00
parent 5b943d0dcd
commit 6c10a675e6

View File

@ -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'