File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed
Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -27,15 +27,16 @@ source $HESTIA/conf/hestia.conf
2727# Verifications #
2828# ----------------------------------------------------------#
2929
30- # Reading user values
31- source $USER_DATA /user.conf
32-
3330FILE=$HOMEDIR /$user /.bash_aliases
3431
32+ check_args ' 2' " $# " ' USER PHPVERSION'
3533is_format_valid ' user'
3634is_object_valid ' user' ' USER' " $user "
3735is_object_unsuspended ' user' ' USER' " $user "
3836
37+ # Reading user values
38+ source $USER_DATA /user.conf
39+
3940# Verify php version format
4041if [[ ! $version =~ ^[0-9]\. [0-9]+ ]]; then
4142 echo " The php version format is invalid, it should look like [0-9].[0-9]..."
Original file line number Diff line number Diff line change @@ -38,11 +38,11 @@ is_web_domain_new() {
3838 web=$( grep -F -H " DOMAIN='$1 '" $HESTIA /data/users/* /web.conf)
3939 if [ ! -z " $web " ]; then
4040 if [ " $type " == ' web' ]; then
41- check_result $E_EXISTS " Web domain $1 exist "
41+ check_result $E_EXISTS " Web domain $1 exists "
4242 fi
4343 web_user=$( echo " $web " | cut -f 7 -d /)
4444 if [ " $web_user " != " $user " ]; then
45- check_result $E_EXISTS " Web domain $1 exist "
45+ check_result $E_EXISTS " Web domain $1 exists "
4646 fi
4747 fi
4848}
Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ is_object_new() {
239239 object=$( grep " $2 ='$3 '" $USER_DATA /$1 .conf)
240240 fi
241241 if [ ! -z " $object " ]; then
242- check_result $E_EXISTS " $2 =$3 is already exists"
242+ check_result $E_EXISTS " $2 =$3 already exists"
243243 fi
244244}
245245
@@ -346,7 +346,7 @@ is_object_value_empty() {
346346 parse_object_kv_list " $str "
347347 eval value=$4
348348 if [ ! -z " $value " ] && [ " $value " != ' no' ]; then
349- check_result $E_EXISTS " ${4// $} =$value is already exists"
349+ check_result $E_EXISTS " ${4// $} =$value already exists"
350350 fi
351351}
352352
You can’t perform that action at this time.
0 commit comments