diff --git a/scripts/cloudron-support b/scripts/cloudron-support index 3a3bb754a..7ecbbf1e5 100755 --- a/scripts/cloudron-support +++ b/scripts/cloudron-support @@ -15,7 +15,7 @@ readonly HELP_MESSAGE=" Options: --enable-remote-access Enable SSH Remote Access for the Cloudron support team - --send-diag Collects server diagnostics and uploads it to ${PASTEBIN} + --send-diagnostics Collects server diagnostics and uploads it to ${PASTEBIN} --owner-login Login as owner --help Show this message " @@ -45,7 +45,7 @@ function owner_login() { echo "Login at https://my.${dashboard_domain} as ${owner_username} / ${owner_password} . This password may only be used once." } -function send_diag() { +function send_diagnostics() { local -r log="/tmp/cloudron-support.log" echo -n "Generating Cloudron Support stats..." @@ -124,7 +124,7 @@ function check_disk_space() { check_disk_space -args=$(getopt -o "" -l "admin-login,enable-ssh,enable-remote-access,help,owner-login,send-diag" -n "$0" -- "$@") +args=$(getopt -o "" -l "admin-login,enable-ssh,enable-remote-access,help,owner-login,send-diagnostics" -n "$0" -- "$@") eval set -- "${args}" while true; do @@ -137,7 +137,7 @@ while true; do # fall through ;& --owner-login) owner_login; exit 0;; - --send-diag) send_diag; exit 0;; + --send-diagnostics) send_diagnostics; exit 0;; --help) break;; --) break;; *) echo "Unknown option $1"; exit 1;;