-
Notifications
You must be signed in to change notification settings - Fork 130
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
6 changed files
with
37 additions
and
24 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Fix permissions on /data | ||
if [[ -z "$QUIET" ]] | ||
then | ||
echo "Setting owner of /data to ${PUID}:${PGID}" >&2 | ||
fi | ||
|
||
sudo chown "${PUID}:${PGID}" /data | ||
sudo chown -R "${PUID}:${PGID}" /data | ||
|
||
# sync files between /data-static and /data | ||
if [[ -z "$NOTHING_FANCY" ]] | ||
then | ||
if [[ -z "$QUIET" ]] | ||
then | ||
echo "Copying files from /data-static to /data" >&2 | ||
fi | ||
rsync -raq /data-static/ /data | ||
fi |
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
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 |
---|---|---|
|
@@ -209,6 +209,7 @@ then | |
) | ||
CONTAINER_ENV+=( | ||
"QUIET=1" | ||
"NOTHING_FANCY=1" | ||
) | ||
fi | ||
|
||
|