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