reintegrate suexec

This commit is contained in:
GlassedSilver
2022-05-03 08:44:55 +02:00
parent 0bdcfa3244
commit 713a97f75a
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ fi
# chown current working directory to current user
if [ "$*" = "$CMD" ] && [ "$(id -u)" = "0" ]; then
find . \! -user "$UID" -exec chown "$UID:$GID" -R '{}' + || echo "WARNING! Could not change directory ownership. If you manage permissions externally this is fine, otherwise you may experience issues when downloading or deleting videos."
exec su-exec "$UID:$GID" "$0" "$@"
exec /usr/lib/apache2/suexec-custom "$UID:$GID" "$0" "$@"
fi
exec "$@"