From 24fb24100ab0ae62cd155a320fcc69070986f5ac Mon Sep 17 00:00:00 2001 From: Julien VAUBOURG Date: Mon, 13 Jul 2015 19:40:34 +0200 Subject: [PATCH] Update upgrade script --- scripts/upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 08c7fb4..24c60bd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -34,7 +34,6 @@ tmpdir=$(mktemp -dp /tmp/ "${APP}-upgrade-XXXXX") sudo systemctl stop "${SERVICE}" -install_time=$(sudo yunohost app setting "${APP}" install_time) sudo cp -a "/etc/yunohost/apps/${APP}/settings.yml" "${tmpdir}/" sudo yunohost app remove "${APP}" @@ -42,6 +41,7 @@ sudo yunohost app install "https://github.com/${OWNER}/${REPO}" --args "${args_u sudo systemctl stop "${SERVICE}" +install_time=$(sudo yunohost app setting "${APP}" install_time) sudo cp -a "${tmpdir}/settings.yml" "/etc/yunohost/apps/${APP}/" sudo yunohost app setting "${APP}" install_time -v "${install_time}"