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:
parent
f72f86ae88
commit
4ace10a10d
4 changed files with 14 additions and 1 deletions
|
@ -21,7 +21,7 @@ multi_instance = true
|
||||||
ldap = false
|
ldap = false
|
||||||
sso = false
|
sso = false
|
||||||
disk = "300M"
|
disk = "300M"
|
||||||
ram.build = "50M"
|
ram.build = "300M"
|
||||||
ram.runtime = "50M"
|
ram.runtime = "50M"
|
||||||
|
|
||||||
[install]
|
[install]
|
||||||
|
|
|
@ -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"
|
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
|
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
|
# REBUILDING AND INSTALL THE APP
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -73,6 +78,8 @@ ynh_script_progression --message="Rebuilding the app..." --weight=1
|
||||||
ynh_use_nodejs
|
ynh_use_nodejs
|
||||||
ynh_exec_warn_less yarn --cwd "$install_dir" build
|
ynh_exec_warn_less yarn --cwd "$install_dir" build
|
||||||
|
|
||||||
|
chown -R $app:$app "$install_dir/.next"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -83,6 +83,9 @@ ynh_exec_warn_less yarn --cwd "$install_dir" install
|
||||||
yarn --cwd "$install_dir" run next telemetry disable
|
yarn --cwd "$install_dir" run next telemetry disable
|
||||||
ynh_exec_warn_less yarn --cwd "$install_dir" build
|
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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -93,6 +93,9 @@ ynh_use_nodejs
|
||||||
ynh_exec_warn_less yarn --cwd "$install_dir" install
|
ynh_exec_warn_less yarn --cwd "$install_dir" install
|
||||||
ynh_exec_warn_less yarn --cwd "$install_dir" build
|
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
|
# START SYSTEMD SERVICE
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue