mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Disable openvpn service AND openvpn_enabled in local_vars.yml
This commit is contained in:
parent
4d41c12338
commit
15a2a3f8a6
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ if [ $? -ne 0 ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if grep -q '^openvpn_enabled:' /etc/iiab/local_vars.yml; then
|
||||
sed -i "s/^openvpn_enabled:.*/openvpn_enabled: False/" /etc/iiab/local_vars.yml
|
||||
else
|
||||
echo "openvpn_enabled: False" >> /etc/iiab/local_vars.yml
|
||||
fi
|
||||
|
||||
systemctl disable openvpn
|
||||
systemctl stop openvpn
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue