diff --git a/scripts/cloudron-support b/scripts/cloudron-support index 983b594f9..808351abe 100755 --- a/scripts/cloudron-support +++ b/scripts/cloudron-support @@ -15,7 +15,6 @@ This script collects diagnostic information to help debug server related issues. Options: --owner-login Login as owner --enable-remote-access Enable SSH Remote Access for the Cloudron support team - --reset-appstore-account Reset associated cloudron.io account --help Show this message " @@ -27,7 +26,7 @@ fi enableSSH="false" -args=$(getopt -o "" -l "help,enable-ssh,enable-remote-access,admin-login,owner-login,reset-appstore-account" -n "$0" -- "$@") +args=$(getopt -o "" -l "help,enable-ssh,enable-remote-access,admin-login,owner-login" -n "$0" -- "$@") eval set -- "${args}" while true; do @@ -50,15 +49,6 @@ while true; do echo "Login at https://my.${dashboard_domain} as ${admin_username} / ${admin_password} . This password may only be used once." exit 0 ;; - --reset-appstore-account) - echo -e "This will reset the Cloudron.io account associated with this Cloudron. Once reset, you can re-login with a different account in the Cloudron Dashboard. See https://docs.cloudron.io/appstore/#change-account for more information.\n" - read -e -p "Reset the Cloudron.io account? [y/N] " choice - [[ "$choice" != [Yy]* ]] && exit 1 - mysql -uroot -ppassword -e "DELETE FROM box.settings WHERE name='cloudron_token';" 2>/dev/null - dashboard_domain=$(mysql -NB -uroot -ppassword -e "SELECT value FROM box.settings WHERE name='dashboard_domain'" 2>/dev/null) - echo "Account reset. Please re-login at https://my.${dashboard_domain}/#/appstore" - exit 0 - ;; --) break;; *) echo "Unknown option $1"; exit 1;; esac