Update adduser.sh
This commit is contained in:
parent
0adbd6ccec
commit
b2146f5646
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue