diff --git a/manifest.toml b/manifest.toml index 985a052..6d36967 100644 --- a/manifest.toml +++ b/manifest.toml @@ -21,7 +21,7 @@ multi_instance = true ldap = false sso = false disk = "300M" -ram.build = "50M" +ram.build = "300M" ram.runtime = "50M" [install] diff --git a/scripts/change_url b/scripts/change_url index 45c85e8..c3278ea 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -65,6 +65,11 @@ then ynh_replace_string --match_string="href=\"$old_next_path/manifest" --replace_string="href=\"$new_next_path/manifest" --target_file="$install_dir/components/CustomHead.tsx" fi +chown $app:www-data "$install_dir/public/manifest.json" +chown $app:www-data "$install_dir/next.config.js" +chmod 664 "$install_dir/public/manifest.json" +chmod 664 "$install_dir/next.config.js" + #================================================= # REBUILDING AND INSTALL THE APP #================================================= @@ -73,6 +78,8 @@ ynh_script_progression --message="Rebuilding the app..." --weight=1 ynh_use_nodejs ynh_exec_warn_less yarn --cwd "$install_dir" build +chown -R $app:$app "$install_dir/.next" + #================================================= # GENERIC FINALISATION #================================================= diff --git a/scripts/install b/scripts/install index 5c8e881..a27b2af 100755 --- a/scripts/install +++ b/scripts/install @@ -83,6 +83,9 @@ ynh_exec_warn_less yarn --cwd "$install_dir" install yarn --cwd "$install_dir" run next telemetry disable ynh_exec_warn_less yarn --cwd "$install_dir" build +chown -R $app:$app "$install_dir/node_modules" +chown -R $app:$app "$install_dir/.next" + #================================================= # GENERIC FINALIZATION #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a871cd4..879156d 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -93,6 +93,9 @@ ynh_use_nodejs ynh_exec_warn_less yarn --cwd "$install_dir" install ynh_exec_warn_less yarn --cwd "$install_dir" build +chown -R $app:$app "$install_dir/node_modules" +chown -R $app:$app "$install_dir/.next" + #================================================= # START SYSTEMD SERVICE #=================================================