Skip to content

Commit 42aae8b

Browse files
committed
use lsiown, ignore dev/cache folders
1 parent b0f6180 commit 42aae8b

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

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

308308
## Versions
309309

310+
* **13.10.24:** - Ignore dev/cache folders during chown.
310311
* **09.10.24:** - Manage permissions in /config/.ssh according to file type
311312
* **19.08.24:** - Rebase to Ubuntu Noble.
312313
* **01.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ app_setup_block: |
4747
How to create the [hashed password](https://github.com/cdr/code-server/blob/master/docs/FAQ.md#can-i-store-my-password-hashed).
4848
# changelog
4949
changelogs:
50+
- {date: "13.10.24:", desc: "Ignore dev/cache folders during chown."}
5051
- {date: "09.10.24:", desc: "Manage permissions in /config/.ssh according to file type"}
5152
- {date: "19.08.24:", desc: "Rebase to Ubuntu Noble."}
5253
- {date: "01.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}

root/etc/s6-overlay/s6-rc.d/init-code-server/run

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ if [[ ! -f /config/.profile ]]; then
2626
cp /root/.profile /config/.profile
2727
fi
2828

29-
# fix permissions (ignore contents of /config/workspace)
30-
find /config -path /config/workspace -prune -o -exec chown abc:abc {} +
31-
chown abc:abc /config/workspace
29+
# fix permissions (ignore contents of workspace and cache folders)
30+
find /config \
31+
-path "/config/workspace" -prune -o \
32+
-path "/config/.npm" -prune -o \
33+
-path "/config/.rustup" -prune -o \
34+
-path "/config/.cargo" -prune -o \
35+
-exec lsiown abc:abc {} +
36+
lsiown abc:abc /config/workspace
3237
chmod 700 /config/.ssh
3338
if [[ -n "$(ls -A /config/.ssh)" ]]; then
3439
find /config/.ssh/ -type d -exec chmod 700 '{}' \;

0 commit comments

Comments
 (0)