export JAIL=has
export JAILHOSTNAME=has
export JAILDOMAIN=ahlawat.com
export JAILIP=7
export JAILUSER=X
export JAILUSERID=1000
export JAILUSERVNC=false
/root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC
iocage set interfaces=vnet0:bridge1,vnet1:bridge3,vnet2:bridge9 ip4_addr="vnet0|192.168.0.7/24,vnet1|192.168.3.7/24,vnet2|192.168.200.7/24" ip6_addr="vnet0|fd01::7/64,vnet1|fd03::7/64,vnet2|fd09::7/64" exec_prestop="ifconfig epair0b -vnet ioc-hass;ifconfig epair1b -vnet ioc-hass;ifconfig epair2b -vnet ioc-hass" hass
iocage exec $JAIL "mkdir /data"
iocage fstab -a $JAIL /mnt/ship/$JAIL /data nullfs rw 0 0
iocage fstab -l $JAIL
iocage set allow_mount=1 enforce_statfs=1 allow_mount_devfs=1 devfs_ruleset=150 $JAIL
iocage exec $JAIL "pkg install -y python38 py38-sqlite3 tmux gmake cmake git-lite heyu2 ffmpeg openjpeg"
mkdir /data/homeassistant
cd /data/homeassistant
python3.8 -m venv .
source bin/activate
pip install --upgrade pip
pip install wheel
pip install --upgrade git+git://github.com/home-assistant/home-assistant.git@dev