Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit f93b747

Browse files
authored
Merge pull request #56 from linuxserver/master-deprecate-umask_set
Deprecate UMASK_SET in favor of UMASK in baseimage
2 parents 3647e26 + 8b603ea commit f93b747

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ services:
7676
- PUID=1000
7777
- PGID=1000
7878
- TZ=Europe/London
79-
- UMASK_SET=022
8079
volumes:
8180
- /path/to/appdata/config:/config
8281
- /path/to/downloads:/downloads
@@ -94,7 +93,6 @@ docker run -d \
9493
-e PUID=1000 \
9594
-e PGID=1000 \
9695
-e TZ=Europe/London \
97-
-e UMASK_SET=022 \
9896
-p 5050:5050 \
9997
-v /path/to/appdata/config:/config \
10098
-v /path/to/downloads:/downloads \
@@ -114,7 +112,6 @@ Container images are configured using parameters passed at runtime (such as thos
114112
| `-e PUID=1000` | for UserID - see below for explanation |
115113
| `-e PGID=1000` | for GroupID - see below for explanation |
116114
| `-e TZ=Europe/London` | Specify a timezone to use EG Europe/London |
117-
| `-e UMASK_SET=022` | for umask setting of couchpotato, optional , default if left unset is 022 |
118115
| `-v /config` | Couchpotato Application Data. |
119116
| `-v /downloads` | Downloads Folder. |
120117
| `-v /movies` | Movie Share. |
@@ -227,6 +224,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
227224

228225
## Versions
229226

227+
* **29.01.21:** - Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information.
230228
* **23.01.21:** - Rebasing to alpine 3.13.
231229
* **10.06.19:** - Add back unrar & unzip that were accidentally left out during rebase.
232230
* **06.06.19:** - Rebasing to alpine 3.12.

readme-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ param_ports:
2727
param_usage_include_env: true
2828
param_env_vars:
2929
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
30-
- { env_var: "UMASK_SET", env_value: "022", desc: "for umask setting of couchpotato, optional , default if left unset is 022"}
3130

3231
# optional parameters
3332
optional_block_1: false
@@ -40,6 +39,7 @@ app_setup_block: |
4039
4140
# changelog
4241
changelogs:
42+
- { date: "29.01.21:", desc: "Deprecate `UMASK_SET` in favor of UMASK in baseimage, see above for more information." }
4343
- { date: "23.01.21:", desc: "Rebasing to alpine 3.13." }
4444
- { date: "10.06.19:", desc: "Add back unrar & unzip that were accidentally left out during rebase." }
4545
- { date: "06.06.19:", desc: "Rebasing to alpine 3.12." }

root/etc/services.d/couchpotato/run

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
#!/usr/bin/with-contenv bash
22

3-
UMASK_SET=${UMASK_SET:-022}
4-
umask "$UMASK_SET"
3+
if [ -n "${UMASK_SET}" ] && [ -z "${UMASK}" ]; then
4+
echo -e "You are using a legacy method of defining umask\nplease update your environment variable from UMASK_SET to UMASK\nto keep the functionality after July 2021"
5+
umask ${UMASK_SET}
6+
fi
57

68
exec \
79
s6-setuidgid abc python /app/couchpotato/CouchPotato.py \

0 commit comments

Comments
 (0)