change to on/off for temp enable/disable

This commit is contained in:
Roger Haxby 2020-11-26 15:36:00 +00:00
parent 13d40399f3
commit 49a9314325
2 changed files with 5 additions and 6 deletions

View file

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

View file

@ -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,8 +113,8 @@ 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 "$@" ;;