Fix: Do chown also on restore

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-10 17:57:22 +01:00
parent 5d927bc573
commit 9a014b34b3
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -77,6 +77,8 @@ function run_restore() {
info "Resetting to remote state..." info "Resetting to remote state..."
git reset --hard FETCH_HEAD git reset --hard FETCH_HEAD
[[ -z $CHOWN_UID ]] || chown -R ${CHOWN_UID}:${CHOWN_GID} .
} }
function run_sync() { function run_sync() {