-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix symlink permission issue * Update readme with permission flags --------- Co-authored-by: Spoked <Spoked@localhost>
- Loading branch information
1 parent
b53dc9d
commit 4e61a4f
Showing
3 changed files
with
38 additions
and
2 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
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,28 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
set -u | ||
|
||
echo "Starting Iceberg container..." | ||
|
||
# Check for required environment variables and validate configuration | ||
# NOTE: This will be used to check for rclone flags and other configuration later | ||
# required_vars=("REQUIRED_VAR1" "REQUIRED_VAR2") | ||
# for var in "${required_vars[@]}"; do | ||
# if [ -z "${!var:-}" ]; then | ||
# echo "Error: Required environment variable '$var' not set." | ||
# exit 1 | ||
# fi | ||
# done | ||
|
||
PUID=${PUID:-1000} | ||
PGID=${PGID:-1000} | ||
|
||
addgroup -g $PGID iceberg | ||
adduser -D -u $PUID -G iceberg iceberg | ||
chown -R iceberg:iceberg /iceberg | ||
chmod -R 755 /iceberg | ||
|
||
trap "echo 'Shutting down...'; exit" SIGINT SIGTERM | ||
echo "Initialization complete. Executing main process..." | ||
exec "$@" |