#87 Solve the caddy and rclone's permission issues when running user is not root

This commit is contained in:
2020-11-15 23:20:41 +11:00
parent 4e72368e72
commit cbddc46cb6
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -15,6 +15,8 @@ ENV PUID=1000
ENV PGID=1000
ENV CADDYPATH=/app
ENV RCLONE_CONFIG=/app/conf/rclone.conf
ENV XDG_DATA_HOME=/app/.caddy/data
ENV XDG_CONFIG_HOME=/app/.caddy/config
ADD aria2c.sh caddy.sh Procfile init.sh start.sh rclone.sh /app/
ADD conf /app/conf
+5
View File
@@ -4,8 +4,13 @@ echo "**** update uid and gid to ${PUID}:${PGID} ****"
groupmod -o -g "$PGID" junv
usermod -o -u "$PUID" junv
mkdir /app/.caddy
mkdir /app/.cache
chown -R junv:junv \
/app \
/app/.caddy \
/app/.cache \
/usr/local \
/var/log \
/data