Skip to content

Commit

Permalink
Fix permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylvain committed Sep 14, 2024
1 parent cae74e1 commit 55699a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@

myynh_set_permissions () {
chown -R $app: "$install_dir"
chmod 750 "$install_dir"
chmod u=rwX,g=rX,o= "$install_dir"
chmod -R o-rwx "$install_dir"
chmod -R +x "$install_dir/bin/"

chown $app:root "/var/log/$app"
chmod -R u=rwX,g=rX,o= "/var/log/$app"
}
2 changes: 2 additions & 0 deletions scripts/restore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ ynh_restore "/etc/systemd/system/scrutiny-collector.timer"
ynh_restore "/etc/logrotate.d/$app"
ynh_restore "/var/log/$app"

myynh_set_permissions

#=================================================
# RELOAD NGINX AND PHP-FPM OR THE APP SERVICE
#=================================================
Expand Down

0 comments on commit 55699a8

Please sign in to comment.