Promote v0.11.4 to production
This commit is contained in:
@@ -363,10 +363,13 @@ count() {
|
||||
printf '%s' "$value"
|
||||
}
|
||||
|
||||
# One cache per user: the root unit and the deploy user never share files.
|
||||
# One cache per user: the root unit and the deploy user never share files. On the hub the
|
||||
# parent belongs to the deployment directory's owner whoever runs first: left to the root unit,
|
||||
# it would stop the deploy user's copy, and with it every deployment's host check (OPS-11).
|
||||
CACHE_DIR="$CACHE_ROOT/$(id -u)"
|
||||
mkdir -p "$CACHE_DIR"
|
||||
chmod 0700 "$CACHE_DIR"
|
||||
if [ "$SCOPE" = hub ] && [ "$(id -u)" = 0 ]; then chown "$(stat -c %u:%g .)" "$CACHE_ROOT"; fi
|
||||
|
||||
# restic [docker args…] -- [restic args…]; runs as the calling user.
|
||||
restic() {
|
||||
|
||||
Reference in New Issue
Block a user