-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #23 Add entrypoint to set proper user permissions
- Loading branch information
1 parent
d77b3ca
commit 0432784
Showing
3 changed files
with
17 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,11 @@ | ||
#!/bin/sh | ||
|
||
# default user id and group id | ||
USER_ID=${USER_ID:-1000} | ||
GROUP_ID=${GROUP_ID:-1000} | ||
|
||
# execute the manga-downloader binary with all arguments passed to this script | ||
manga-downloader "$@" | ||
|
||
# Set ownership to USER_ID:GROUP_ID for /downloads | ||
chown -R ${USER_ID}:${GROUP_ID} /downloads |