mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-27 13:57:46 +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
|
#!/bin/sh -e
|
||||||
|
|
||||||
# make sure files are written with correct user ownership
|
# make sure files are written with correct user ownership
|
||||||
usermod -u `stat -c %u /work/src` aptly >/dev/null
|
if [ `stat -c %u /work/src` -ne 0 ]; then
|
||||||
chown -R `stat -c %u /work/src` /var/lib/aptly
|
usermod -u `stat -c %u /work/src` aptly >/dev/null
|
||||||
|
chown -R `stat -c %u /work/src` /var/lib/aptly
|
||||||
|
fi
|
||||||
|
|
||||||
args="$@"
|
args="$@"
|
||||||
if [ -z "$args" ]; then
|
if [ -z "$args" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user