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

[autopatch] TEST BEFORE MERGE ynh_setup_source --full_replace=1

This commit is contained in:
Yunohost-Bot 2024-03-11 15:40:36 +01:00 committed by Félix Piédallu
parent 8b7c2045d2
commit 180b5e21dc

View file

@ -137,7 +137,7 @@ then
# Remove destination directory # Remove destination directory
ynh_secure_remove --file=$final_path ynh_secure_remove --file=$final_path
# 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" --full_replace=1
# Restore previous files # Restore previous files
if [ -d $tmpdir/uploads ] ; then if [ -d $tmpdir/uploads ] ; then
cp -Rp $tmpdir/uploads $final_path/public cp -Rp $tmpdir/uploads $final_path/public
@ -168,7 +168,7 @@ then
cp -Rp "$final_path/plugins/discourse-ldap-auth/config/settings.yml" $tmpdir cp -Rp "$final_path/plugins/discourse-ldap-auth/config/settings.yml" $tmpdir
ynh_secure_remove --file="$final_path/plugins/discourse-ldap-auth" ynh_secure_remove --file="$final_path/plugins/discourse-ldap-auth"
mkdir -p "$final_path/plugins/discourse-ldap-auth" mkdir -p "$final_path/plugins/discourse-ldap-auth"
ynh_setup_source --dest_dir="$final_path/plugins/discourse-ldap-auth" --source_id=ldap-auth ynh_setup_source --dest_dir="$final_path/plugins/discourse-ldap-auth" --source_id=ldap-auth --full_replace=1
cp -p $tmpdir/settings.yml $final_path/plugins/discourse-ldap-auth/config cp -p $tmpdir/settings.yml $final_path/plugins/discourse-ldap-auth/config
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
fi fi