Skip to content

Commit

Permalink
move occ_command to include check_command
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hansson committed Feb 6, 2018
1 parent 6c1b17e commit 9425fd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib.sh
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9425fd2

Please sign in to comment.