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:
parent
99ab3bc86a
commit
62e9e411a7
2 changed files with 10 additions and 4 deletions
|
@ -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
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
mkdir -p "$final_path/live"
|
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"
|
||||||
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"
|
||||||
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"
|
ynh_setup_source --source_id=app_api-gateway --dest_dir="$final_path/live/api-gateway"
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
|
|
|
@ -267,6 +267,14 @@ then
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
fi
|
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
|
# 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
|
||||||
ynh_backup_if_checksum_is_different --file=$config_syncing_server_js_worker
|
ynh_backup_if_checksum_is_different --file=$config_syncing_server_js_worker
|
||||||
# Remove destination directory
|
# 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"
|
||||||
ynh_secure_remove --file="$config_syncing_server_js_worker"
|
ynh_secure_remove --file="$config_syncing_server_js_worker"
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
|
@ -320,7 +328,7 @@ then
|
||||||
# Backup files to keep
|
# Backup files to keep
|
||||||
ynh_backup_if_checksum_is_different --file=$config_api_gateway
|
ynh_backup_if_checksum_is_different --file=$config_api_gateway
|
||||||
# Remove destination directory
|
# 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"
|
ynh_secure_remove --file="$config_api_gateway"
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
mkdir -p "$final_path/live"
|
mkdir -p "$final_path/live"
|
||||||
|
|
Loading…
Reference in a new issue