1
0
Fork 0
mirror of synced 2025-04-05 06:03:33 +03:00

Update adduser.sh

This commit is contained in:
Peiying Yang(Brian) 2017-05-27 23:07:00 -04:00 committed by GitHub
parent 0adbd6ccec
commit b2146f5646

View file

@ -11,3 +11,9 @@ echo "Enter password"
read password
password=$(openssl passwd -1 "$password")
echo $username":"$password":xauth-psk" >> /etc/ipsec.d/passwd
if grep "^"$username":" /etc/ipsec.d/passwd
then
echo "Success to add"
else
echo "Fail to add"
fi