-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
1 addition
and
121 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
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 |
---|---|---|
@@ -1,43 +1,3 @@ | ||
#!/bin/sh | ||
|
||
if [[ -z "${MOUNT_POINTS}" ]] | ||
then | ||
echo "The environment variable MOUNT_POINTS can be set to a comma separated list of the mount points in the container. Use default now." | ||
READ_MOUNT_POINTS="/config,/tls,/app/settings" | ||
WRITE_MOUNT_POINTS="" | ||
MOUNT_POINTS=$READ_MOUNT_POINTS,$WRITE_MOUNT_POINTS | ||
fi | ||
|
||
echo "MOUNT_POINTS is set to \"${MOUNT_POINTS}\"" | ||
echo "READ_MOUNT_POINTS is set to \"${READ_MOUNT_POINTS}\"" | ||
echo "WRITE_MOUNT_POINTS is set to \"${WRITE_MOUNT_POINTS}\"" | ||
|
||
for point in ${MOUNT_POINTS//,/ } | ||
do | ||
if [ ! -d ${point} ] | ||
then | ||
echo "Skip non-existent directory: \"${point}\"" | ||
continue | ||
fi | ||
|
||
echo "chown is made for \"${point}\"" | ||
chown -R hyper:hyper ${point} | ||
|
||
echo "chmod u+r is made for \"${point}\"" | ||
chmod -R u+r ${point} | ||
done | ||
|
||
for point in ${WRITE_MOUNT_POINTS//,/ } | ||
do | ||
if [ ! -d ${point} ] | ||
then | ||
continue | ||
fi | ||
|
||
echo "chmod u+w is made for \"${point}\"" | ||
chmod -R u+w ${point} | ||
done | ||
|
||
echo "Execute hyper with user hyper" | ||
|
||
exec su hyper -c "./hyper $*" |
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 |
---|---|---|
@@ -1,43 +1,3 @@ | ||
#!/bin/sh | ||
|
||
if [[ -z "${MOUNT_POINTS}" ]] | ||
then | ||
echo "The environment variable MOUNT_POINTS can be set to a comma separated list of the mount points in the container. Use default now." | ||
READ_MOUNT_POINTS="/config,/tls,/app/settings" | ||
WRITE_MOUNT_POINTS="/storage,/app/db,/tmp" | ||
MOUNT_POINTS=$READ_MOUNT_POINTS,$WRITE_MOUNT_POINTS | ||
fi | ||
|
||
echo "MOUNT_POINTS is set to \"${MOUNT_POINTS}\"" | ||
echo "READ_MOUNT_POINTS is set to \"${READ_MOUNT_POINTS}\"" | ||
echo "WRITE_MOUNT_POINTS is set to \"${WRITE_MOUNT_POINTS}\"" | ||
|
||
for point in ${MOUNT_POINTS//,/ } | ||
do | ||
if [ ! -d ${point} ] | ||
then | ||
echo "Skip non-existent directory: \"${point}\"" | ||
continue | ||
fi | ||
|
||
echo "chown is made for \"${point}\"" | ||
chown -R hyper:hyper ${point} | ||
|
||
echo "chmod u+r is made for \"${point}\"" | ||
chmod -R u+r ${point} | ||
done | ||
|
||
for point in ${WRITE_MOUNT_POINTS//,/ } | ||
do | ||
if [ ! -d ${point} ] | ||
then | ||
continue | ||
fi | ||
|
||
echo "chmod u+w is made for \"${point}\"" | ||
chmod -R u+w ${point} | ||
done | ||
|
||
echo "Execute proxy with user hyper" | ||
|
||
exec su hyper -c "./proxy $*" |
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 |
---|---|---|
@@ -1,43 +1,3 @@ | ||
#!/bin/sh | ||
|
||
if [[ -z "${MOUNT_POINTS}" ]] | ||
then | ||
echo "The environment variable MOUNT_POINTS can be set to a comma separated list of the mount points in the container. Use default now." | ||
READ_MOUNT_POINTS="/config,/tls,/app/settings" | ||
WRITE_MOUNT_POINTS="/storage,/app/db,/tmp" | ||
MOUNT_POINTS=$READ_MOUNT_POINTS,$WRITE_MOUNT_POINTS | ||
fi | ||
|
||
echo "MOUNT_POINTS is set to \"${MOUNT_POINTS}\"" | ||
echo "READ_MOUNT_POINTS is set to \"${READ_MOUNT_POINTS}\"" | ||
echo "WRITE_MOUNT_POINTS is set to \"${WRITE_MOUNT_POINTS}\"" | ||
|
||
for point in ${MOUNT_POINTS//,/ } | ||
do | ||
if [ ! -d ${point} ] | ||
then | ||
echo "Skip non-existent directory: \"${point}\"" | ||
continue | ||
fi | ||
|
||
echo "chown is made for \"${point}\"" | ||
chown -R hyper:hyper ${point} | ||
|
||
echo "chmod u+r is made for \"${point}\"" | ||
chmod -R u+r ${point} | ||
done | ||
|
||
for point in ${WRITE_MOUNT_POINTS//,/ } | ||
do | ||
if [ ! -d ${point} ] | ||
then | ||
continue | ||
fi | ||
|
||
echo "chmod u+w is made for \"${point}\"" | ||
chmod -R u+w ${point} | ||
done | ||
|
||
echo "Execute sd with user hyper" | ||
|
||
exec su hyper -c "./sd $*" |
File renamed without changes.