From 14d07694e101760da221d3c0085e96e06e77bbd7 Mon Sep 17 00:00:00 2001 From: abicorios Date: Wed, 6 Mar 2019 17:47:52 +0200 Subject: [PATCH] add Vagrant support The folder /home/admin/conf/web/ has empty files after install Vesta on pure Vagrant systems (cenos/7, debian/stretch64, ubuntu/bionic64) if it is used option config.vm.network "private_network" or config.vm.network "public_network" in the Vagrantfile. This patch fix it. --- func/ip.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/func/ip.sh b/func/ip.sh index c99a3272b..e70564605 100644 --- a/func/ip.sh +++ b/func/ip.sh @@ -216,6 +216,7 @@ get_user_ip() { if [ ! -z "$nat" ]; then ip=$nat fi + grep -q "^vagrant" /etc/passwd && [ `hostname -I | wc -w` -gt 1 ] && ip=`hostname -I | cut -f 2 -d " "` } # Validate ip address