1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/openvpn/templates/iiab-handle

14 lines
342 B
Text
Raw Normal View History

2017-05-27 18:09:50 +00:00
#!/bin/bash
# script to write a handle file that identifies the openvpn client to server
echo
echo
read -p "what identifying handle would you like to use? " ans
if [ "$ans" == "" ]; then
if [ -f /etc/iiab/handle ]; then
rm -f /etc/iiab/handle
2017-05-27 18:09:50 +00:00
fi
else
echo $ans > /etc/iiab/handle
2017-05-27 18:09:50 +00:00
fi
{{ systemctl_program }} restart openvpn@xscenet