File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
root/etc/s6-overlay/s6-rc.d/init-setup-app Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ ENVIRONMENT APP
13
13
14
14
echo "Applying permissions to /cache"
15
15
chmod "=rwx" "/cache"
16
- chown hotio:hotio "/cache"
16
+ find "/cache" -maxdepth 0 \( ! -user hotio -or ! -group hotio \) -exec chown hotio:hotio {} +
17
17
18
18
echo "Applying permissions to /logs"
19
19
chmod "=rwx" "/logs"
20
- chown hotio:hotio "/logs"
20
+ find "/logs" -maxdepth 0 \( ! -user hotio -or ! -group hotio \) -exec chown hotio:hotio {} +
21
21
22
22
if [[ ! -f "${CONFIG_DIR}/machine-id" ]]; then
23
23
tr -dc 'a-f0-9' < /dev/urandom | fold -w 32 | head -n 1 > "${CONFIG_DIR}/machine-id"
24
- chown hotio:hotio "${CONFIG_DIR}/machine-id"
24
+ find "${CONFIG_DIR}/machine-id" -maxdepth 0 \( ! -user hotio -or ! -group hotio \) -exec chown hotio:hotio {} +
25
25
fi
26
26
27
27
if [[ ! -f "${CONFIG_DIR}/settings.json" ]]; then
@@ -30,10 +30,10 @@ if [[ ! -f "${CONFIG_DIR}/settings.json" ]]; then
30
30
"log_directory" : "/logs",
31
31
"temporary_directory" : "/cache"
32
32
}' > "${CONFIG_DIR}/settings.json"
33
- chown hotio:hotio "${CONFIG_DIR}/settings.json"
33
+ find "${CONFIG_DIR}/settings.json" -maxdepth 0 \( ! -user hotio -or ! -group hotio \) -exec chown hotio:hotio {} +
34
34
fi
35
35
36
36
if [[ ! -f "${CONFIG_DIR}/duplicacy.json" ]]; then
37
37
echo '{}' > "${CONFIG_DIR}/duplicacy.json"
38
- chown hotio:hotio "${CONFIG_DIR}/duplicacy.json"
38
+ find "${CONFIG_DIR}/duplicacy.json" -maxdepth 0 \( ! -user hotio -or ! -group hotio \) -exec chown hotio:hotio {} +
39
39
fi
You can’t perform that action at this time.
0 commit comments