1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lingva_ynh.git synced 2024-09-03 19:36:20 +02:00

ubah perizinan

This commit is contained in:
Neko Nekowazarashi 2023-06-02 16:06:33 +07:00 committed by the7thNightmare
parent f72f86ae88
commit 4ace10a10d
4 changed files with 14 additions and 1 deletions

View file

@ -21,7 +21,7 @@ multi_instance = true
ldap = false
sso = false
disk = "300M"
ram.build = "50M"
ram.build = "300M"
ram.runtime = "50M"
[install]

View file

@ -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
#=================================================

View file

@ -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
#=================================================

View file

@ -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
#=================================================