mirror of
https://github.com/YunoHost/yunohost_demo.git
synced 2024-09-03 19:56:44 +02:00
fix upgrade
This commit is contained in:
parent
bdfd2775e7
commit
1e2f238ed6
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue