diff --git a/lib.sh b/lib.sh index f38f8650cb..0e7698fa55 100644 --- a/lib.sh +++ b/lib.sh @@ -174,11 +174,6 @@ local PROMPT="$1" whiptail --msgbox "${PROMPT}" "$WT_HEIGHT" "$WT_WIDTH" } -# Example: occ_command 'maintenance:mode --on' -occ_command() { -check_command sudo -u www-data php "$NCPATH"/occ "$1" -} - # Check if process is runnnig: is_process_running dpkg is_process_running() { PROCESS="$1" @@ -537,6 +532,11 @@ any_key() { echo } +# Example: occ_command 'maintenance:mode --on' +occ_command() { +check_command sudo -u www-data php "$NCPATH"/occ "$1" +} + ## bash colors # Reset Color_Off='\e[0m' # Text Reset