This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* optimize entrypoint for gitlab-ci refs #34
- Loading branch information
Bastian Rang
committed
Sep 29, 2017
1 parent
b976362
commit 061d6b6
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
/.idea/ | ||
composer.lock | ||
/rancherize.json | ||
/.rancherize | ||
/.rancherize | ||
/scripts/rancherize-test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
USER="root" | ||
if [ ! -z "$GROUP_ID" ] && [ ! -z "$USER_ID" ] ; then | ||
deluser rancherize > /dev/null 2>&1 | ||
addgroup -g $GROUP_ID rancherize | ||
adduser -u $USER_ID -G rancherize -D -s /bin/sh rancherize | ||
USER="rancherize" | ||
fi | ||
|
||
if [ -x "$1" ] ; then | ||
su-exec "$USER" $* | ||
exit $? | ||
fi | ||
|
||
su-exec "$USER" php /opt/rancherize/rancherize $@ |