Enable more actions for OpenVPN script
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo systemctl status openvpn@home.service
|
||||
SERVICE_NAME="openvpn@home.service"
|
||||
|
||||
if (( $# < 1 )); then
|
||||
sudo systemctl status $SERVICE_NAME
|
||||
else
|
||||
sudo systemctl $1 $SERVICE_NAME
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user