File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 77#
88# The function adds support for wp-cli to the user account
99
10+
1011# ----------------------------------------------------------#
1112# Variable&Function #
1213# ----------------------------------------------------------#
@@ -19,6 +20,7 @@ if [ -z "$HESTIA" ]; then
1920fi
2021source $HESTIA /func/main.sh
2122
23+
2224# ----------------------------------------------------------#
2325# Verifications #
2426# ----------------------------------------------------------#
@@ -33,6 +35,7 @@ is_object_unsuspended 'user' 'USER' "$user"
3335# Perform verification if read-only mode is enabled
3436check_hestia_demo_mode
3537
38+
3639# ----------------------------------------------------------#
3740# Action #
3841# ----------------------------------------------------------#
@@ -55,6 +58,7 @@ chown $user:$user "$WPCLI_DIR"
5558user_exec wget --tries=3 --timeout=15 --read-timeout=15 --waitretry=3 --no-dns-cache --quiet -O $WPCLI_BIN https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
5659user_exec chmod +x $WPCLI_BIN
5760
61+
5862# ----------------------------------------------------------#
5963# Hestia #
6064# ----------------------------------------------------------#
@@ -63,4 +67,4 @@ user_exec chmod +x $WPCLI_BIN
6367log_history " Enabled wp-cli for user $user "
6468log_event " $OK " " $ARGUMENTS "
6569
66- exit
70+ exit
You can’t perform that action at this time.
0 commit comments