/run/systemd/system/ doesn't exist if you're installing the context RPM with virt-customize.

pull/71/head
Mariano Guezuraga 8 years ago
parent 2a8cfc0b93
commit 3e48d9c435

@ -31,12 +31,15 @@ if [ -f /etc/init.d/vmcontext ]; then
else
echo 'WARNING: Contextualization service not enabled' >&2
fi
elif [ -d /run/systemd/system/ ]; then
elif [ -d /etc/systemd ]; then
if [ -f /usr/lib/systemd/system/one-context-local.service -a\
-f /usr/lib/systemd/system/one-context.service ]; then
systemctl enable one-context-local.service
systemctl enable one-context.service
else
echo 'WARNING: Contextualization service not enabled' >&2
fi
fi
# Debian based distros
if [ -d /etc/network ]; then

Loading…
Cancel
Save