Sync after update to make sure changes propagate to host

This commit is contained in:
Erik Wramner 2019-07-30 08:44:37 +02:00
parent e47c73f789
commit b58fd30c0a
2 changed files with 2 additions and 0 deletions

View File

@ -32,3 +32,4 @@ if [ -z "$PASSWD" ]; then
fi
HASH="$(doveadm pw -s SHA512-CRYPT -u "$USER" -p "$PASSWD")"
echo "$USER|$HASH" >> $DATABASE
sync $DATABASE

View File

@ -31,3 +31,4 @@ grep -qi "^$(escape "$USER")|" $DATABASE 2>/dev/null ||
errex "User \"$USER\" does not exist"
sed -i "s ^"$USER"|.* "$USER"|"$HASH" " $DATABASE
sync $DATABASE