From 9425fd2500a68240f9c755e85b882764728f3a05 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Tue, 6 Feb 2018 19:27:34 +0100 Subject: [PATCH] move occ_command to include check_command --- lib.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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