mirror of
https://github.com/kossakovsky/n8n-install.git
synced 2026-03-07 14:23:08 +00:00
fix: run permission fix after every update
Some hosting providers (CLOUD.RU, etc.) reset file permissions during updates, leaving .env and generated files owned by root. This prevents normal users from reading configuration. Now 08_fix_permissions.sh runs after each update to restore proper ownership and permissions.
This commit is contained in:
@@ -98,6 +98,13 @@ bash "$RUN_SERVICES_SCRIPT" || { log_error "Failed to start services. Check logs
|
||||
|
||||
log_success "Update application completed successfully!"
|
||||
|
||||
# --- Fix file permissions ---
|
||||
log_info "Fixing file permissions..."
|
||||
bash "$SCRIPT_DIR/08_fix_permissions.sh" || {
|
||||
log_warning "Failed to fix file permissions. This does not affect the update."
|
||||
}
|
||||
# --- End of Fix permissions ---
|
||||
|
||||
# --- Display Final Report with Credentials ---
|
||||
bash "$SCRIPT_DIR/07_final_report.sh" || {
|
||||
log_warning "Failed to display the final report. This does not affect the update."
|
||||
|
||||
Reference in New Issue
Block a user