1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/codimd_ynh.git synced 2024-09-03 18:16:32 +02:00
This commit is contained in:
Éric Gaspar 2022-07-11 08:24:14 +02:00
parent b393a0e9f2
commit ca2f2abe72
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 7 additions and 5 deletions

View file

@ -100,6 +100,7 @@ ynh_setup_source --dest_dir=$final_path
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod +x $final_path/app.js
#=================================================
# NGINX CONFIGURATION
@ -118,8 +119,8 @@ ynh_script_progression --message="Building CodiMD... (this will take some time a
pushd $final_path
ynh_use_nodejs
ynh_exec_as $app env $ynh_node_load_PATH bin/setup
ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH bin/setup
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build
popd
#=================================================
@ -132,7 +133,6 @@ ynh_add_config --template="../conf/.sequelizerc.example" --destination="$final_p
chmod 600 $final_path/config.json
chmod 600 $final_path/.sequelizerc
chmod +x $final_path/app.js
#=================================================
# SETUP SYSTEMD

View file

@ -136,8 +136,10 @@ then
pushd "$final_path"
ynh_use_nodejs
ynh_exec_warn_less bin/setup
ynh_exec_warn_less $ynh_npm run build
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH bin/setup
ynh_exec_warn_less ynh_exec_as $app env $ynh_node_load_PATH $ynh_npm run build
#ynh_exec_warn_less ynh_exec_warn_less bin/setup
#ynh_exec_warn_less ynh_exec_warn_less $ynh_npm run build
popd
fi