Skip to content

Commit ee1a0a5

Browse files
Kristan Kenneyunknown
authored andcommitted
Update v-change-sys-webmail
Use existing v-change-sys-config-value script to manipulate webmail alias value instead of additional sed routines
1 parent 6b45ece commit ee1a0a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

bin/v-change-sys-webmail

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ for user in `ls /usr/local/hestia/data/users/`; do
4141
done
4242

4343
# Set new webmail alias
44-
sed -i "s|WEBMAIL_ALIAS='$OLD_ALIAS'|WEBMAIL_ALIAS='$NEW_ALIAS'|gI" $HESTIA/conf/hestia.conf
44+
$BIN/v-change-sys-config-value 'WEBMAIL_ALIAS' '$NEW_ALIAS'
4545

4646
for user in `ls /usr/local/hestia/data/users/`; do
4747
for domain in $($BIN/v-list-web-domains $user plain |cut -f 1); do
48-
echo "Changing webmail alias for $domain"
4948
$BIN/v-add-webmail $user $domain
5049
done
5150
done

0 commit comments

Comments
 (0)