Browse Source

Remove double error error

And replace it with 1 "Error"
Jaap Marcus 4 years ago
parent
commit
d972fb565f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      bin/v-change-web-domain-docroot

+ 2 - 2
bin/v-change-web-domain-docroot

@@ -89,11 +89,11 @@ else
         # Checking destination path
         # Checking destination path
         real_target_directory="$(readlink -e "${target_domain_directory}/public_html/$target_directory/")"
         real_target_directory="$(readlink -e "${target_domain_directory}/public_html/$target_directory/")"
         if [ -z "$(echo $real_target_directory | egrep "^$target_domain_directory\b")" ]; then
         if [ -z "$(echo $real_target_directory | egrep "^$target_domain_directory\b")" ]; then
-            check_result $E_FORBIDEN "Error: target dir outside of target domain dir"
+            check_result $E_FORBIDEN "target dir outside of target domain dir"
         fi
         fi
 
 
         if [ ! -e "$real_target_directory" ]; then
         if [ ! -e "$real_target_directory" ]; then
-            check_result $E_NOTEXIST "ERROR: Directory $target_directory does not exist under $HOMEDIR/$user/$target_domain/public_html/."
+            check_result $E_NOTEXIST "Directory $target_directory does not exist under $HOMEDIR/$user/$target_domain/public_html/."
         else
         else
             CUSTOM_DOCROOT="$real_target_directory"
             CUSTOM_DOCROOT="$real_target_directory"
             if [ ! -z "$php" ]; then
             if [ ! -z "$php" ]; then