Skip to content

Commit 66711cf

Browse files
committed
Sync after update to make sure changes propagate to host
1 parent 57cc307 commit 66711cf

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

target/bin/addmailuser

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ if [ -z "$PASSWD" ]; then
3232
fi
3333
HASH="$(doveadm pw -s SHA512-CRYPT -u "$USER" -p "$PASSWD")"
3434
echo "$USER|$HASH" >> $DATABASE
35+
sync $DATABASE

target/bin/updatemailuser

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ grep -qi "^$(escape "$USER")|" $DATABASE 2>/dev/null ||
3131
errex "User \"$USER\" does not exist"
3232

3333
sed -i "s ^"$USER"|.* "$USER"|"$HASH" " $DATABASE
34+
sync $DATABASE

0 commit comments

Comments
 (0)