Skip to content

Commit

Permalink
make sure nginx cache is owned by www-data
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Nov 3, 2024
1 parent fe8c6eb commit 235352c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/deb/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ if [ $(getent group systemd-journal) ]; then
usermod -a -G systemd-journal ${config.user}
fi

if [ -d /var/lib/nginx/proxy ]; then
chown -R www-data:www-data /var/lib/nginx/proxy
fi

chown -R ${config.user}:${config.group} ${config.installDir} /usr/share/java/r2cloud/*.jar
chmod 640 ${config.installDir}/lib/*.jar /usr/share/java/r2cloud/*.jar
Expand Down

0 comments on commit 235352c

Please sign in to comment.