mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
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:
parent
c1b775443d
commit
14d07694e1
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue