Drop all direct usage of systemctl enable

Since we already have a wrapper script for enabling services called
os-svc-enable, drop all direct usage of systemctl enable, replacing
it with os-svc-enable.

Also drive-by replacements of == with =. == is a pattern match.

Change-Id: I707bf6f02207308e8f61caff17a27b0697096359
This commit is contained in:
Steve Kowalik
2014-08-11 16:55:33 +10:00
parent bc3d153121
commit f1d096d95a
13 changed files with 18 additions and 26 deletions

View File

@@ -54,13 +54,11 @@ WantedBy=multi-user.target
Alias=nova-bm-dnsmasq.service
eof
# Enable the service
systemctl enable nova-bm-dnsmasq.service
}
if [ "$DIB_INIT_SYSTEM" == "upstart" ]; then
if [ "$DIB_INIT_SYSTEM" = "upstart" ]; then
install_dnsmasq_upstart
elif [ "$DIB_INIT_SYSTEM" == "systemd" ]; then
elif [ "$DIB_INIT_SYSTEM" = "systemd" ]; then
install_dnsmasq_systemd
fi
os-svc-enable -n nova-bm-dnsmasq