Browse Source

Update v-change-sys-webmail

Use existing v-change-sys-config-value script to manipulate webmail alias value instead of additional sed routines
Kristan Kenney 6 years ago
parent
commit
ee1a0a5531
1 changed files with 1 additions and 2 deletions
  1. 1 2
      bin/v-change-sys-webmail

+ 1 - 2
bin/v-change-sys-webmail

@@ -41,11 +41,10 @@ for user in `ls /usr/local/hestia/data/users/`; do
 done
 
 # Set new webmail alias
-sed -i "s|WEBMAIL_ALIAS='$OLD_ALIAS'|WEBMAIL_ALIAS='$NEW_ALIAS'|gI" $HESTIA/conf/hestia.conf
+$BIN/v-change-sys-config-value 'WEBMAIL_ALIAS' '$NEW_ALIAS'
 
 for user in `ls /usr/local/hestia/data/users/`; do
     for domain in $($BIN/v-list-web-domains $user plain |cut -f 1); do
-        echo "Changing webmail alias for $domain"
         $BIN/v-add-webmail $user $domain
     done
 done