Various fixes for CI (and don't compute hash for run.sh)

This commit is contained in:
Florent 2021-09-17 22:02:27 +02:00 committed by Florent
parent f9f683b300
commit 1b52e32658
2 changed files with 15 additions and 18 deletions

View file

@ -156,17 +156,6 @@ chown $app:$app "$base_config_path"
chmod 600 "$user_config_path" chmod 600 "$user_config_path"
chown $app:$app "$user_config_path" chown $app:$app "$user_config_path"
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$app_service_registration_path/$app.yaml"
# Probably not worth anymore, because the overrides should
# be now in $user_config_path
# ynh_store_file_checksum --file="$base_config_path"
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD
#================================================= #=================================================
@ -208,6 +197,14 @@ cp "$final_path/$app.yaml" $app_service_registration_path/$app.yaml
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \ /opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \
|| ynh_die "Synapse can't restart with the appservice configuration" || ynh_die "Synapse can't restart with the appservice configuration"
#=================================================
# STORE THE CONFIG FILE CHECKSUM
#=================================================
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum --file="$app_service_registration_path/$app.yaml"
#================================================= #=================================================
# SEND A README FOR THE ADMIN # SEND A README FOR THE ADMIN
#================================================= #=================================================

View file

@ -110,7 +110,7 @@ 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" --keep="run.sh"
fi fi
chmod 750 "$final_path" chmod 750 "$final_path"