From 370b824d0be523565c67ed5f79510b721ae0c001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:49:22 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 11a9a00..6c762e7 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -57,12 +57,13 @@ chmod +x $install_dir/xftp-server # SPECIFIC SETUP #================================================= -public_ip4="$(curl -s ip.yunohost.org)" || true -ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4 - if [ ! -f /etc/opt/simplex-xftp ]; then mkdir -p "/etc/opt/simplex-xftp" + + public_ip4="$(curl -s ip.yunohost.org)" || true + ynh_app_setting_set --app=$app --key=public_ip4 --value=$public_ip4 + pushd "$install_dir" ./xftp-server init --ip $public_ip4 --quota '20gb' --store-log --path $data_dir popd