mirror of
https://github.com/YunoHost-Apps/yeswiki_ynh.git
synced 2024-09-03 18:05:56 +02:00
Keep ferme instances during upgrade
This commit is contained in:
parent
2f3676b0fa
commit
0602f8b2a1
1 changed files with 9 additions and 5 deletions
|
@ -25,7 +25,11 @@ then
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# 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
|
# 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); 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"
|
ynh_replace_string --match_string="yeswiki_release' \?=> \?'.*',$" --replace_string="yeswiki_release' => '$(ynh_app_upstream_version)'," --target_file="$install_dir/wakka.config.php"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue