mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-24 22:11:56 +00:00
Update ha.sh
This commit is contained in:
parent
bc17a0eed8
commit
f54aa9c186
10
ha.sh
10
ha.sh
@ -72,19 +72,19 @@ if [ "$STORAGE_TYPE" == "zfspool" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Download setup script
|
# Download setup script
|
||||||
REPO="https://github.com/tteck/Proxmox"
|
#REPO="https://github.com/tteck/Proxmox"
|
||||||
wget -qO - ${REPO}/tarball/master | tar -xz --strip-components=1
|
#wget -qO - ${REPO}/tarball/master | tar -xz --strip-components=1
|
||||||
|
|
||||||
# Modify LXC permissions to support Docker
|
# Modify LXC permissions to support Docker
|
||||||
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
|
||||||
cat <<EOF >> $LXC_CONFIG
|
cat <<EOF >> $LXC_CONFIG
|
||||||
lxc.cgroup.devices.allow: a
|
lxc.cgroup2.devices.allow: a
|
||||||
lxc.cap.drop:
|
lxc.cap.drop:
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Load modules for Docker before starting LXC
|
# Load modules for Docker before starting LXC
|
||||||
cat << 'EOF' >> $LXC_CONFIG
|
cat << 'EOF' >> $LXC_CONFIG
|
||||||
lxc.hook.pre-start: sh -ec 'for module in aufs overlay; do modinfo $module; $(lsmod | grep -Fq $module) || modprobe $module; done;'
|
lxc.hook.pre-start: sh -ec 'do modinfo $module; $(lsmod | grep -Fq $module) || modprobe $module; done;'
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Set autodev hook to enable access to devices in container
|
# Set autodev hook to enable access to devices in container
|
||||||
@ -192,4 +192,4 @@ Home Assistant is reachable by going to the following URLs.
|
|||||||
http://${IP}:8123
|
http://${IP}:8123
|
||||||
http://${HOSTNAME}.local:8123
|
http://${HOSTNAME}.local:8123
|
||||||
|
|
||||||
"
|
"
|
||||||
|
Loading…
Reference in New Issue
Block a user