1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Fix: install / upgrade script issues

This commit is contained in:
Fabian Wilkens 2021-10-30 09:59:53 +02:00
parent 99ab3bc86a
commit 62e9e411a7
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB
2 changed files with 10 additions and 4 deletions

View file

@ -119,9 +119,7 @@ ynh_script_progression --message="Setting up source files..." --weight=2
# Download, check integrity, uncompress and patch the source from app.src
mkdir -p "$final_path/live"
ynh_setup_source --source_id=app_syncing-server-js --dest_dir="$final_path/live/syncing-server-js"
ynh_setup_source --source_id=app_syncing-server-js --dest_dir="$final_path/live/syncing-server-js-worker"
ynh_setup_source --source_id=app_auth --dest_dir="$final_path/live/auth"
ynh_setup_source --source_id=app_auth --dest_dir="$final_path/live/auth-worker"
ynh_setup_source --source_id=app_api-gateway --dest_dir="$final_path/live/api-gateway"
chmod 750 "$final_path"

View file

@ -267,6 +267,14 @@ then
ynh_remove_app_dependencies
fi
# Remove unneeded data
if [ -e "$final_path/live/syncing-server-js-worker" ]; then
ynh_secure_remove --file="$final_path/live/syncing-server-js-worker"
fi
if [ -e "$final_path/live/auth-worker" ]; then
ynh_secure_remove --file="$final_path/live/auth-worker"
fi
#=================================================
# CREATE DEDICATED USER
#=================================================
@ -293,7 +301,7 @@ then
ynh_backup_if_checksum_is_different --file=$config_syncing_server_js
ynh_backup_if_checksum_is_different --file=$config_syncing_server_js_worker
# Remove destination directory
ynh_secure_remove --file="$final_path/live/syncing_server_js"
ynh_secure_remove --file="$final_path/live/syncing-server-js"
ynh_secure_remove --file="$config_syncing_server_js"
ynh_secure_remove --file="$config_syncing_server_js_worker"
# Download, check integrity, uncompress and patch the source from app.src
@ -320,7 +328,7 @@ then
# Backup files to keep
ynh_backup_if_checksum_is_different --file=$config_api_gateway
# Remove destination directory
ynh_secure_remove --file="$final_path/live/api_gateway"
ynh_secure_remove --file="$final_path/live/api-gateway"
ynh_secure_remove --file="$config_api_gateway"
# Download, check integrity, uncompress and patch the source from app.src
mkdir -p "$final_path/live"