From 3064cb51d1c3cbe8f72826b38bf8c1c2da1571fc Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 18 May 2018 01:39:16 +0900 Subject: [PATCH] uninstall upstart if systemd get installed --- btcpay-setup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/btcpay-setup.sh b/btcpay-setup.sh index 1f3e480..9670a0c 100755 --- a/btcpay-setup.sh +++ b/btcpay-setup.sh @@ -197,7 +197,11 @@ echo -e "BTCPay Server docker-compose parameters saved in $BTCPAY_ENV_FILE\n" # Schedule for reboot if [ -d "/etc/systemd/system" ]; then # Use systemd - +if [ -e "/etc/init/start_containers.conf" ]; then + echo -e "Uninstalling upstart script /etc/init/start_containers.conf" + rm "/etc/init/start_containers.conf" + initctl reload-configuration +fi echo "Adding btcpayserver.service to systemd" echo " [Unit]