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

Add warning, wipe data when moving to 1.8.7

This commit is contained in:
Salamandar 2024-02-23 16:59:23 +01:00
parent 3ca1deb87d
commit af07d5b013
4 changed files with 21 additions and 7 deletions

View file

@ -0,0 +1,7 @@
**CAREFUL, THIS UPGRADE WILL WIPE DATA.**
This is a Duniter issue, not related to YunoHost, see <https://forum.duniter.org/t/duniter-v1-8-7-release/11222/61>.
You will just have to restart the synchronization.
If you think you lost data in the process, don't forget that YunoHost provides backups!

View file

@ -7,7 +7,7 @@ name = "Duniter"
description.en = "Crypto-currency software to operate Ğ1 libre currency"
description.fr = "Logiciel de cryptomonnaie pour faire fonctionner la monnaie libre Ğ1"
version = "1.8.7~ynh0"
version = "1.8.7~ynh1"
maintainers = ["Moul"]

View file

@ -8,18 +8,21 @@
# PERSONAL HELPERS
#=================================================
CONFIGURE_DUNITER() {
ynh_exec_as "duniter" duniter --home "$data_dir" config \
--bma --ipv4 127.0.0.1 --port "$port_local_bma" --remoteh $domain --remotep 443 --noupnp
run_duniter() {
ynh_exec_as "duniter" duniter --home "$data_dir" "$@"
}
ynh_exec_as "duniter" duniter --home "$data_dir" config \
CONFIGURE_DUNITER() {
run_duniter config --bma --ipv4 127.0.0.1 --port "$port_local_bma" --remoteh $domain --remotep 443 --noupnp
run_duniter config \
--ws2p-host 127.0.0.1 --ws2p-port "$port_local_ws2p" \
--ws2p-remote-host "$domain" --ws2p-remote-port 443 \
--ws2p-remote-path "/ws2p" --ws2p-noupnp
# Add BMAS with path, remove auto-generated BMAS endpoint
ynh_exec_as "duniter" duniter --home "$data_dir" config \
--addep "BMAS $domain 443 /bma" --remep "BMAS $domain 443"
run_duniter config --addep "BMAS $domain 443 /bma" --remep "BMAS $domain 443"
}
#=================================================

View file

@ -29,6 +29,10 @@ if [ -z "$(ls -A "$data_dir")" ]; then
chown -R "$app:www-data" "$data_dir"
fi
if ynh_compare_current_package_version --comparison lt --version 1.8.7~ynh1; then
run_duniter reset data
fi
#=================================================
# SPECIFIC UPGRADE
#=================================================