archives/gitlab-foss: new aport

This commit is contained in:
Antoine Martin 2024-08-09 22:27:52 -04:00
parent 6496493030
commit 8403bcb534
Signed by: ayakael
GPG key ID: D62A472A4AA7D541
15 changed files with 1142 additions and 0 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh
BUNDLE_DIR='/usr/lib/bundles/gitlab'
export RAILS_ENV='production'
export NODE_ENV='production'
export EXECJS_RUNTIME='Disabled'
cd $BUNDLE_DIR
install -m 700 -o git -g git -d "$(readlink ./tmp)"
if [ "$(id -un)" != 'git' ]; then
exec su git -c '"$0" "$@"' -- bin/__COMMAND__ "$@"
else
exec bin/__COMMAND__ "$@"
fi