mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-12 03:21:33 +00:00
docker-wrapper: ignore root user
some systems (MacOS) might have root permissions on the volume directories.
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
# make sure files are written with correct user ownership
|
||||
usermod -u `stat -c %u /work/src` aptly >/dev/null
|
||||
chown -R `stat -c %u /work/src` /var/lib/aptly
|
||||
if [ `stat -c %u /work/src` -ne 0 ]; then
|
||||
usermod -u `stat -c %u /work/src` aptly >/dev/null
|
||||
chown -R `stat -c %u /work/src` /var/lib/aptly
|
||||
fi
|
||||
|
||||
args="$@"
|
||||
if [ -z "$args" ]; then
|
||||
|
||||
Reference in New Issue
Block a user