added sudo check, cleaned up comments
This commit is contained in:
6
debian/debian-setup-email.sh
vendored
6
debian/debian-setup-email.sh
vendored
@@ -1,5 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$EUID" -ne 0 ]
|
||||
then
|
||||
echo "Please run as root"
|
||||
exit
|
||||
fi
|
||||
|
||||
isInFile=$(cat /etc/postfix/main.cf | grep -c "gmail")
|
||||
if [ $isInFile -eq 0 ]
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user