Fix no systemd reload

This commit is contained in:
nicolas.dorier
2019-09-15 17:25:50 +09:00
parent 8109fd8b81
commit 21f1af6280

View File

@@ -465,6 +465,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/btcpayserver.service
fi
echo -e "BTCPay Server systemd configured in /etc/systemd/system/btcpayserver.service\n"
if $SYSTEMD_RELOAD; then
systemctl daemon-reload
systemctl enable btcpayserver
if $START; then
@@ -472,6 +473,9 @@ WantedBy=multi-user.target" > /etc/systemd/system/btcpayserver.service
systemctl start btcpayserver
echo "BTCPay Server started"
fi
else
systemctl --no-reload enable btcpayserver
fi
elif $STARTUP_REGISTER && [[ -x "$(command -v initctl)" ]]; then
# Use upstart
echo "Using upstart"
@@ -495,7 +499,7 @@ script
end script" > /etc/init/start_containers.conf
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
if $START && $SYSTEMD_RELOAD; then
if $START; then
initctl reload-configuration
fi
fi