Skip to content

Commit 9aaf883

Browse files
author
Kristan Kenney
committed
Fix missing path in script
When called from the UI, script fails to execute webmail configuration refresh commands
1 parent 1ff34ce commit 9aaf883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bin/v-change-sys-webmail

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ check_args '1' "$#" 'WEBMAIL'
3636
# Delete old webmail configuration
3737
for user in `ls /usr/local/hestia/data/users/`; do
3838
for domain in $($BIN/v-list-web-domains $user plain |cut -f 1); do
39-
v-delete-webmail $user $domain
39+
$BIN/v-delete-webmail $user $domain
4040
done
4141
done
4242

@@ -46,7 +46,7 @@ sed -i "s|WEBMAIL_ALIAS='$OLD_ALIAS'|WEBMAIL_ALIAS='$NEW_ALIAS'|gI" $HESTIA/conf
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
4848
echo "Changing webmail alias for $domain"
49-
v-add-webmail $user $domain
49+
$BIN/v-add-webmail $user $domain
5050
done
5151
done
5252

0 commit comments

Comments
 (0)