1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/etherpad_ynh.git synced 2024-09-03 18:36:10 +02:00

Update upgrade

This commit is contained in:
ericgaspar 2021-11-21 12:52:55 +01:00
parent d0dbd972f0
commit bd957fb2b0
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -70,19 +70,6 @@ if ynh_legacy_permissions_exists; then
ynh_app_setting_delete --app=$app --key=is_public
fi
if ! ynh_permission_exists --permission="admin"; then
# Create the required permissions
ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin
fi
#=================================================
# BACKUP BEFORE UPGRADE THEN ACTIVE TRAP
#=================================================
ynh_script_progression --message="Backing up Etherpad before upgrading (may take a while)..." --weight=1
ynh_app_setting_delete --app=$app --key=is_public
fi
if ! ynh_permission_exists --permission="admin"; then
# Create the required permissions
ynh_permission_create --permission="admin" --url="/admin" --allowed=$admin --auth_header=false
@ -132,8 +119,8 @@ then
# Download, check integrity, uncompress and patch the source from app.src
pushd "$final_path"
git pull origin
ynh_use_nodejs
git pull origin
ynh_exec_as $app env "$ynh_node_load_PATH" src/bin/run.sh
popd
fi