Mise à jour de 'ecoleA/proxy.sh'

Test du user ROOT
This commit is contained in:
Cédric Abonnel 2022-12-12 13:56:35 +01:00
parent 2137a9ce69
commit a1294339a3
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,11 @@
#!/bin/usr
# Test du user ROOT
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
file_apt_proxy="/etc/apt/apt.conf.d/01proxy"
file_http_proxy="/etc/profile.d/proxy.sh"