Add files via upload

pull/23/head
tteckster 3 years ago committed by GitHub
parent 900d4818f5
commit a26ec7cee0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -64,13 +64,9 @@ HOOK_SCRIPT=${HOOK_SCRIPT//$'\n'/}
CTID=$1
CTID_CONFIG_PATH=/etc/pve/lxc/${CTID}.conf
sed '/autodev/d' $CTID_CONFIG_PATH >CTID.conf
sed '/devices/d' $CTID_CONFIG_PATH >CTID.conf
sed '/cap/d' $CTID_CONFIG_PATH >CTID.conf
cat CTID.conf >$CTID_CONFIG_PATH
cat <<EOF >> $CTID_CONFIG_PATH
lxc.cgroup2.devices.allow: a
lxc.cap.drop:
lxc.autodev: 1
lxc.hook.autodev: bash -c '$HOOK_SCRIPT'
EOF

Loading…
Cancel
Save

Powered by BW's shoe-string budget.