From 1e2f238ed64f25bb685913809c4d17c07c41c37b Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 10 Dec 2020 11:58:40 +0100 Subject: [PATCH] fix upgrade --- demo_upgrade.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/demo_upgrade.sh b/demo_upgrade.sh index 60ab8d6..e06cb1d 100755 --- a/demo_upgrade.sh +++ b/demo_upgrade.sh @@ -82,6 +82,8 @@ UPGRADE_DEMO_CONTAINER () { # Démarrage, upgrade et snapshot sudo lxc-attach -n $MACHINE -- apt-get autoremove -y sudo lxc-attach -n $MACHINE -- apt-get autoclean fi + sudo lxc-attach -n $MACHINE -- yunohost tools update + sudo lxc-attach -n $MACHINE -- yunohost tools upgrade --system # Exécution des scripts de upgrade.d LOOP=$((LOOP + 1)) @@ -124,10 +126,10 @@ UPGRADE_DEMO_CONTAINER () { # Démarrage, upgrade et snapshot done <<< "$(ls -1 "$script_dir/upgrade.d/Constant_upgrade")" # Upgrade des apps - sudo lxc-attach -n $MACHINE -- yunohost app fetchlist - sudo lxc-attach -n $MACHINE -- service nginx restart - sudo lxc-attach -n $MACHINE -- yunohost app upgrade - sudo lxc-attach -n $MACHINE -- service nginx restart + sudo lxc-attach -n $MACHINE -- yunohost tools update + sudo lxc-attach -n $MACHINE -- systemctl restart nginx + sudo lxc-attach -n $MACHINE -- yunohost tools upgrade --apps + sudo lxc-attach -n $MACHINE -- systemctl restart nginx # Arrêt de la machine virtualisée sudo lxc-stop -n $MACHINE