diff --git a/scripts/install b/scripts/install index 5b6954b..de08521 100644 --- a/scripts/install +++ b/scripts/install @@ -146,7 +146,7 @@ popd || ynh_die #================================================= ynh_script_progression --message="Securing files and directories..." --weight=1 -chown -R $app:$app $final_path +chown -R $app: $final_path #================================================= # INTEGRATE SERVICE IN YUNOHOST @@ -172,7 +172,7 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=1 if [ $is_public -eq 1 ] then # unprotected_uris allows SSO credentials to be passed anyway. - ynh_permission_update --permission "main" --add visitors + ynh_permission_update --permission="main" --add="visitors" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 5e77972..81ec3ed 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -83,7 +83,11 @@ then ynh_script_progression --message="Upgrading source files..." --weight=1 # Download, check integrity, uncompress and patch the source from app.src - ynh_setup_source --dest_dir="$final_path" + #ynh_setup_source --dest_dir="$final_path" + + pushd $final_path + bower update + popd fi #================================================= @@ -129,17 +133,17 @@ ynh_replace_string --match_string="__ADMIN_MAIL__" --replace_string="$admin_mail # Store file checksum to detected user modifications on upgrade ynh_store_file_checksum "$final_path/config/config.js" -#================================================= -# INSTALL CRYPTPAD -#================================================= -ynh_script_progression --message="Building CryptPad... (this will take some time and resources!)" --weight=60 +# #================================================= +# # INSTALL CRYPTPAD +# #================================================= +# ynh_script_progression --message="Building CryptPad... (this will take some time and resources!)" --weight=60 -pushd "$final_path" || ynh_die - ynh_use_nodejs - ynh_exec_warn_less yarn install --allow-root - yarn global add bower - bower install --allow-root -popd || ynh_die +# pushd "$final_path" || ynh_die +# ynh_use_nodejs +# ynh_exec_warn_less yarn install --allow-root +# yarn global add bower +# bower install --allow-root +# popd || ynh_die #================================================= # SETUP SYSTEMD