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.
This commit is contained in:
abicorios 2019-03-06 17:47:52 +02:00 committed by GitHub
commit 14d07694e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -216,6 +216,7 @@ get_user_ip() {
if [ ! -z "$nat" ]; then if [ ! -z "$nat" ]; then
ip=$nat ip=$nat
fi fi
grep -q "^vagrant" /etc/passwd && [ `hostname -I | wc -w` -gt 1 ] && ip=`hostname -I | cut -f 2 -d " "`
} }
# Validate ip address # Validate ip address