Skip to content

Commit 97e6b34

Browse files
authored
Restrict Permissions. Adds www-data to lychee group and changes /uploads permissions to 775. (#23)
1 parent f916d4d commit 97e6b34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

entrypoint.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ echo -e " \tUser GID :\t$(id -g "$USER")"
6464
echo "**** Set Permissions ****" && \
6565
chown -R "$USER":"$USER" /conf
6666
chown -R "$USER":"$USER" /uploads
67-
chmod -R a+rw /uploads
67+
usermod -a -G "$USER" www-data
68+
chmod -R 775 /uploads
6869
chown -R www-data:www-data /var/www/html/Lychee-Laravel
6970

7071
echo "**** Setup complete, starting the server. ****"

0 commit comments

Comments
 (0)