Skip to content

Commit acf9c3b

Browse files
authored
Merge pull request #14 from linuxserver/perms
improve perm fixing
2 parents e17754d + b1f523d commit acf9c3b

4 files changed

Lines changed: 10 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,4 +329,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
329329

330330
## Versions
331331

332+
* **08.01.26:** - Improve permission fixing.
332333
* **31.10.25:** - Initial Release.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,5 @@ init_diagram: |
7474
"sealskin:latest" <- Base Images
7575
# changelog
7676
changelogs:
77+
- {date: "08.01.26:", desc: "Improve permission fixing."}
7778
- {date: "31.10.25:", desc: "Initial Release."}

root/etc/s6-overlay/s6-rc.d/init-sealskin/run

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
#!/usr/bin/with-contenv bash
22

3+
mkdir -p /config/ssl
4+
35
# create self signed cert
46
if [ ! -f "/config/ssl/proxy_key.pem" ]; then
5-
mkdir -p /config/ssl
67
openssl req -new -x509 \
78
-days 3650 -nodes \
89
-out /config/ssl/proxy_cert.pem \
910
-keyout /config/ssl/proxy_key.pem \
1011
-subj "/C=US/ST=CA/L=Carlsbad/O=Linuxserver.io/OU=LSIO Server/CN=*"
1112
chmod 600 /config/ssl/proxy_key.pem
12-
chown -R abc:abc /config/ssl
1313
fi
1414

1515
# generate server key
1616
if [ ! -f "/config/ssl/server_key.pem" ]; then
17-
mkdir -p /config/ssl
1817
openssl genpkey \
1918
-algorithm RSA \
2019
-out /config/ssl/server_key.pem \
2120
-pkeyopt rsa_keygen_bits:4096
2221
chmod 600 /config/ssl/server_key.pem
23-
chown -R abc:abc /config/ssl
2422
fi
2523

2624
# docker socket perms
@@ -45,5 +43,6 @@ if [ -S "${DOCKER_SOCK_PATH}" ]; then
4543
fi
4644

4745
# perms
48-
chown abc:abc /sealskin.zip
49-
chown abc:abc /storage
46+
lsiown abc:abc /sealskin.zip
47+
lsiown abc:abc /storage
48+
lsiown -R abc:abc /config
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/with-contenv bash
22

3+
cd /opt/sealskin/server
4+
35
# Run SealSkin
46
exec s6-setuidgid abc \
5-
bash -c 'cd /opt/sealskin/server && python3 main.py'
7+
python3 main.py

0 commit comments

Comments
 (0)