diff --git a/Vagrantfile b/Vagrantfile index 74c6b78..dc6d07e 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -42,13 +42,13 @@ Vagrant.configure("2") do |config| # Stop on first error set -e - # Upgrade Yunohost and the system packages (disabled) - sudo apt-get update - sudo apt-get upgrade --yes - sudo apt-get dist-upgrade --yes - - # Finish Yunohost installation if ! [[ -f /etc/yunohost/installed ]]; then + # Upgrade Yunohost and the system packages (disabled) + sudo apt-get update + sudo apt-get upgrade --yes + sudo apt-get dist-upgrade --yes + + # Finish Yunohost installation sudo yunohost tools postinstall --domain ${DOMAIN} --password ${YUNOHOST_ADMIN_PASSWORD} --ignore-dyndns fi diff --git a/test.sh b/test.sh index b4d94a7..4a60fbe 100755 --- a/test.sh +++ b/test.sh @@ -104,7 +104,7 @@ function setup() { if (vagrant snapshot list | grep 'yunohost-jessie-pristine' > /dev/null); then echo "--- Restoring Vagrant snapshot ---" - vagrant snapshot restore --no-provision yunohost-jessie-pristine + vagrant snapshot restore yunohost-jessie-pristine else echo "--- Provisioning Vagrant box ---" vagrant up --provision