fix upgrade

This commit is contained in:
Kay0u 2020-12-10 11:58:40 +01:00
parent bdfd2775e7
commit 1e2f238ed6
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -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 autoremove -y
sudo lxc-attach -n $MACHINE -- apt-get autoclean sudo lxc-attach -n $MACHINE -- apt-get autoclean
fi 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 # Exécution des scripts de upgrade.d
LOOP=$((LOOP + 1)) LOOP=$((LOOP + 1))
@ -124,10 +126,10 @@ UPGRADE_DEMO_CONTAINER () { # Démarrage, upgrade et snapshot
done <<< "$(ls -1 "$script_dir/upgrade.d/Constant_upgrade")" done <<< "$(ls -1 "$script_dir/upgrade.d/Constant_upgrade")"
# Upgrade des apps # Upgrade des apps
sudo lxc-attach -n $MACHINE -- yunohost app fetchlist sudo lxc-attach -n $MACHINE -- yunohost tools update
sudo lxc-attach -n $MACHINE -- service nginx restart sudo lxc-attach -n $MACHINE -- systemctl restart nginx
sudo lxc-attach -n $MACHINE -- yunohost app upgrade sudo lxc-attach -n $MACHINE -- yunohost tools upgrade --apps
sudo lxc-attach -n $MACHINE -- service nginx restart sudo lxc-attach -n $MACHINE -- systemctl restart nginx
# Arrêt de la machine virtualisée # Arrêt de la machine virtualisée
sudo lxc-stop -n $MACHINE sudo lxc-stop -n $MACHINE