From 05f529061606d7c7ab94e390074526256079815b Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sat, 7 Mar 2026 11:05:47 +0100 Subject: Move file sourcing, extend help 1. Move "external" sourced files in a place where they aren't failing before something essential like the help function 2. Tell the user about the required files in the help text 3. Tell the user that -upgrade is rather to be called from somewhere else (in a built package, this may later reside in a /lib folder) --- bin/nextcloud-upgrade | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bin/nextcloud-upgrade') diff --git a/bin/nextcloud-upgrade b/bin/nextcloud-upgrade index 4dec0aa..bfb4d7f 100755 --- a/bin/nextcloud-upgrade +++ b/bin/nextcloud-upgrade @@ -8,16 +8,13 @@ # Define help function function hayulp { printf 'USAGE: %b [-a|--app-update] [-c|--core-update VERSION]\n\n' "$(basename "$0")" + printf '\033[3mThis is supposed to be called by "nextcloud-update".\033[0m\n\n' ( printf -- '-a,\n' printf -- '--app-update;Update all apps\n' printf -- '-c,\n' printf -- '--core-update;Update the Nextcloud core (including apps update)\n' printf -- ';VERSION is mandatory. "0" for no update at all (e.g. for wrapper scripts).\n' - printf -- '-s,\n' - printf -- '--status;Status including version\n' - printf -- '-u,\n' - printf -- '--update-check;Status including update check\n' printf -- '-h,\n' printf -- '--help;This help text\n' )|column -ts \; -- cgit v1.2.3