1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mattermost_ynh.git synced 2024-09-03 19:36:29 +02:00

test: make provisioning a no-op if already configured properly

This commit is contained in:
Pierre de La Morinerie 2017-10-12 10:31:22 +05:30
parent b7e3913fd7
commit 6b9a4359ff
2 changed files with 7 additions and 7 deletions

12
Vagrantfile vendored
View file

@ -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

View file

@ -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