Skip to content

Commit 6c3c7aa

Browse files
authored
Change XDG_DATA_DIR path permissions
The /data directory is the default XDG_DATA_DIR path for a Caddy-based image, and the /data directory may be used by other services and Devcontainer hosts, so it needs to be writable by the non-root user.
1 parent 38af1de commit 6c3c7aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.devcontainer/run-frankenphp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ GROUP_ID=$(id -g)
77

88
# Ensure the Caddy config and data directories are owned by the current user
99
sudo chown -R $USER_ID:$GROUP_ID /config/caddy
10-
sudo chown -R $USER_ID:$GROUP_ID /data/caddy
10+
sudo chown -R $USER_ID:$GROUP_ID /data
1111
sudo touch /var/log/frankenphp.log
1212
sudo chown $USER_ID:$GROUP_ID /var/log/frankenphp.log
1313

0 commit comments

Comments
 (0)