mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
change to on/off for temp enable/disable
This commit is contained in:
parent
13d40399f3
commit
49a9314325
2 changed files with 5 additions and 6 deletions
|
@ -10,7 +10,6 @@
|
||||||
# curl -L https://install.pivpn.io | bash
|
# curl -L https://install.pivpn.io | bash
|
||||||
# Make sure you have `curl` installed
|
# Make sure you have `curl` installed
|
||||||
|
|
||||||
# timestamp 2020/5/24 15:53BST
|
|
||||||
|
|
||||||
######## VARIABLES #########
|
######## VARIABLES #########
|
||||||
pivpnGitUrl="https://github.com/pivpn/pivpn.git"
|
pivpnGitUrl="https://github.com/pivpn/pivpn.git"
|
||||||
|
|
|
@ -92,8 +92,8 @@ showHelp(){
|
||||||
echo "::: -l, list List all clients"
|
echo "::: -l, list List all clients"
|
||||||
echo "::: -qr, qrcode Show the qrcode of a client for use with the mobile app"
|
echo "::: -qr, qrcode Show the qrcode of a client for use with the mobile app"
|
||||||
echo "::: -r, remove Remove a client"
|
echo "::: -r, remove Remove a client"
|
||||||
echo "::: -dis, disable Disable a user"
|
echo "::: -off, off Disable a user"
|
||||||
echo "::: -ena, enable Enable a user"
|
echo "::: -on , on Enable a user"
|
||||||
echo "::: -h, help Show this help dialog"
|
echo "::: -h, help Show this help dialog"
|
||||||
echo "::: -u, uninstall Uninstall pivpn from your system!"
|
echo "::: -u, uninstall Uninstall pivpn from your system!"
|
||||||
echo "::: -up, update Updates PiVPN Scripts"
|
echo "::: -up, update Updates PiVPN Scripts"
|
||||||
|
@ -113,11 +113,11 @@ case "$1" in
|
||||||
"-l" | "list" ) listClients;;
|
"-l" | "list" ) listClients;;
|
||||||
"-qr" | "qrcode" ) showQrcode "$@";;
|
"-qr" | "qrcode" ) showQrcode "$@";;
|
||||||
"-r" | "remove" ) removeClient "$@";;
|
"-r" | "remove" ) removeClient "$@";;
|
||||||
"-dis" | "disable" ) disableClient "$@";;
|
"-off" | "off" ) disableClient "$@";;
|
||||||
"-ena" | "enable" ) enableClient "$@";;
|
"-on" | "on" ) enableClient "$@";;
|
||||||
"-h" | "help" ) showHelp;;
|
"-h" | "help" ) showHelp;;
|
||||||
"-u" | "uninstall" ) uninstallServer;;
|
"-u" | "uninstall" ) uninstallServer;;
|
||||||
"-up" | "update" ) updateScripts "$@" ;;
|
"-up" | "update" ) updateScripts "$@" ;;
|
||||||
"-bk" | "backup" ) backup ;;
|
"-bk" | "backup" ) backup ;;
|
||||||
* ) showHelp;;
|
* ) showHelp;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue