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 2021-01-22 14:01:32 +01:00
parent 13ff510109
commit 85f62fad35
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 17 additions and 13 deletions

View file

@ -146,7 +146,7 @@ popd || ynh_die
#================================================= #=================================================
ynh_script_progression --message="Securing files and directories..." --weight=1 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 # INTEGRATE SERVICE IN YUNOHOST
@ -172,7 +172,7 @@ ynh_script_progression --message="Configuring SSOwat..." --weight=1
if [ $is_public -eq 1 ] if [ $is_public -eq 1 ]
then then
# unprotected_uris allows SSO credentials to be passed anyway. # unprotected_uris allows SSO credentials to be passed anyway.
ynh_permission_update --permission "main" --add visitors ynh_permission_update --permission="main" --add="visitors"
fi fi
#================================================= #=================================================

View file

@ -83,7 +83,11 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1 ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src # 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 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 # Store file checksum to detected user modifications on upgrade
ynh_store_file_checksum "$final_path/config/config.js" ynh_store_file_checksum "$final_path/config/config.js"
#================================================= # #=================================================
# INSTALL CRYPTPAD # # INSTALL CRYPTPAD
#================================================= # #=================================================
ynh_script_progression --message="Building CryptPad... (this will take some time and resources!)" --weight=60 # ynh_script_progression --message="Building CryptPad... (this will take some time and resources!)" --weight=60
pushd "$final_path" || ynh_die # pushd "$final_path" || ynh_die
ynh_use_nodejs # ynh_use_nodejs
ynh_exec_warn_less yarn install --allow-root # ynh_exec_warn_less yarn install --allow-root
yarn global add bower # yarn global add bower
bower install --allow-root # bower install --allow-root
popd || ynh_die # popd || ynh_die
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD