Enable more actions for OpenVPN script

This commit is contained in:
Martin Blazik
2022-05-02 08:24:14 +02:00
parent f796acf14e
commit 6c322d43f9

View File

@@ -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