diff options
author | Daniel Hansson <github@techandme.se> | 2018-02-06 21:27:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 21:27:34 +0300 |
commit | 9425fd2500a68240f9c755e85b882764728f3a05 (patch) | |
tree | 1fdcbd4a4bf6621aa16ac2ce2c102f4dce63faff | |
parent | 6c1b17e5ec6745b3eb08c1e8789d6eeaa4d8b435 (diff) |
move occ_command to include check_command13.0.0
-rw-r--r-- | lib.sh | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |