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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user