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

Merge pull request #71 from YunoHost-Apps/keep_ferme_instances_during_upgrade

Keep ferme instances during upgrade
This commit is contained in:
Alexandre Aubin 2023-12-10 01:06:01 +01:00 committed by GitHub
commit 318169b2e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 7 deletions

View file

@ -39,7 +39,7 @@ However, with a YesWiki we can build a website with multiple uses:
* Official app website: <https://yeswiki.net/>
* Official admin documentation: <https://yeswiki.net/?DocumentatioN>
* Upstream app code repository: <https://github.com/YesWiki/yeswiki>
* YunoHost documentation for this app: <https://yunohost.org/app_yeswiki>
* YunoHost Store: <https://apps.yunohost.org/app/yeswiki>
* Report a bug: <https://github.com/YunoHost-Apps/yeswiki_ynh/issues>
## Developer info

View file

@ -39,7 +39,7 @@ Néanmoins, avec un YesWiki on peut fabriquer un site internet aux usages multip
* Site officiel de lapp : <https://yeswiki.net/>
* Documentation officielle de ladmin : <https://yeswiki.net/?DocumentatioN>
* Dépôt de code officiel de lapp : <https://github.com/YesWiki/yeswiki>
* Documentation YunoHost pour cette app : <https://yunohost.org/app_yeswiki>
* YunoHost Store: <https://apps.yunohost.org/app/yeswiki>
* Signaler un bug : <https://github.com/YunoHost-Apps/yeswiki_ynh/issues>
## Informations pour les développeurs

View file

@ -25,7 +25,11 @@ then
# Download, check integrity, uncompress and patch the source from app.src
# TODO : find a way to sync stable extensions list to avoid hardcoded extensions folders to keep
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env wakka.config.php files custom private themes tools/accountactivationbyemail tools/advancedsearch tools/benevolat tools/ferme tools/fontautoinstall tools/ipblock tools/lms tools/login-sso tools/logincas tools/loginldap tools/maintenance tools/multideletepages tools/nextcloudconnector tools/publication tools/qrcode tools/stats tools/tabdyn tools/twolevels tools/webhooks"
ferme_instances="$(cd $install_dir; for p in $(ls -- */wakka.config.php 2>/dev/null); do dirname "$p"; done)"
ynh_setup_source --dest_dir="$install_dir" --full_replace=1 --keep=".env $ferme_instances wakka.config.php files custom private themes
tools/accountactivationbyemail tools/advancedsearch tools/benevolat tools/ferme tools/fontautoinstall tools/ipblock
tools/lms tools/login-sso tools/logincas tools/loginldap tools/maintenance tools/multideletepages
tools/nextcloudconnector tools/publication tools/qrcode tools/stats tools/tabdyn tools/twolevels tools/webhooks"
ynh_replace_string --match_string="yeswiki_release' \?=> \?'.*',$" --replace_string="yeswiki_release' => '$(ynh_app_upstream_version)'," --target_file="$install_dir/wakka.config.php"
fi