change systemd file if virtualisation is enabled

This commit is contained in:
oiseauroch
2022-12-22 16:14:33 +01:00
parent 827c9425b0
commit ff6be76e85
2 changed files with 9 additions and 5 deletions

View File

@@ -93,9 +93,13 @@ if [ "$(which modprobe)" = "" ]
then
virtualisation=false
export VIRTUALISATION=false
# uncomment systemd isolation
virt_protection=""
else
export VIRTUALISATION=false
export VIRTUALISATION=true
virtualisation=true
# comment systemd isolation to allow mount disk
virt_protection="#"
fi
ynh_app_setting_set --app=$app --key=virtualisation --value=$virtualisation