fix std
This commit is contained in:
parent
6d2f6183a0
commit
7ec74ce70a
@ -83,7 +83,7 @@ function update() {
|
|||||||
|
|
||||||
msg_info "Starting service"
|
msg_info "Starting service"
|
||||||
if [[ "$OS" == "Alpine" ]]; then
|
if [[ "$OS" == "Alpine" ]]; then
|
||||||
rc-service pihole-exporter start
|
rc-service pihole-exporter start &>/dev/null
|
||||||
else
|
else
|
||||||
systemctl start pihole-exporter
|
systemctl start pihole-exporter
|
||||||
fi
|
fi
|
||||||
@ -169,8 +169,8 @@ start_pre() {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
chmod +x "$SERVICE_PATH"
|
chmod +x "$SERVICE_PATH"
|
||||||
rc-update add pihole-exporter default
|
$STD rc-update add pihole-exporter default
|
||||||
rc-service pihole-exporter start
|
$STD rc-service pihole-exporter start
|
||||||
fi
|
fi
|
||||||
msg_ok "Created and started service"
|
msg_ok "Created and started service"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user