mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
enabling UID:GID
This commit is contained in:
parent
9a869a1474
commit
a6d4609d3b
@ -35,4 +35,13 @@ if [[ ! -r "$CONFIG_FILE" ]]; then
|
|||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec /app/lldap "$@"
|
echo "> Setup permissions.."
|
||||||
|
find /app \! -user "$UID" -exec chown "$UID:$GID" '{}' +
|
||||||
|
find /data \! -user "$UID" -exec chown "$UID:$GID" '{}' +
|
||||||
|
|
||||||
|
|
||||||
|
echo "> Starting lldap.."
|
||||||
|
echo ""
|
||||||
|
exec gosu "$UID:$GID" /app/lldap "$@"
|
||||||
|
|
||||||
|
exec "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user