1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cryptpad_ynh.git synced 2024-09-03 18:26:14 +02:00
This commit is contained in:
ericgaspar 2022-04-04 15:15:57 +02:00
parent ced6a09a15
commit 369c87afb5
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 11 additions and 11 deletions

View file

@ -90,6 +90,10 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
@ -121,15 +125,11 @@ ynh_script_progression --message="Building $app... (this will take some time and
pushd "$final_path"
ynh_use_nodejs
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --allow-root
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -g bower
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH bower install --allow-root
ynh_exec_warn_less npm install --allow-root
ynh_exec_warn_less npm install -g bower
ynh_exec_warn_less bower install --allow-root
popd
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:$app "$final_path"
#=================================================
# SETUP LOGROTATE
#=================================================

View file

@ -123,10 +123,10 @@ ynh_exec_warn_less ynh_install_nodejs --nodejs_version=$nodejs_version
ynh_script_progression --message="Building $app... (this will take some time and resources!)" --weight=60
pushd "$final_path"
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install --allow-root
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm install -g bower
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH bower update --allow-root
ynh_exec_warn_less sudo -u $app env $ynh_node_load_PATH $ynh_npm i
ynh_exec_warn_less npm install --allow-root
ynh_exec_warn_less npm install -g bower
ynh_exec_warn_less bower update --allow-root
ynh_exec_warn_less npm i
popd
#=================================================