Can skip systemd reload
This commit is contained in:
@@ -61,6 +61,7 @@ This script must be run as root, except on Mac OS
|
|||||||
--install-only: Run install only
|
--install-only: Run install only
|
||||||
--docker-unavailable: Same as --install-only, but will also skip install steps requiring docker
|
--docker-unavailable: Same as --install-only, but will also skip install steps requiring docker
|
||||||
--no-startup-register: Do not register BTCPayServer to start via systemctl or upstart
|
--no-startup-register: Do not register BTCPayServer to start via systemctl or upstart
|
||||||
|
--no-systemd-reload: Do not reload systemd configuration
|
||||||
|
|
||||||
This script will:
|
This script will:
|
||||||
|
|
||||||
@@ -108,6 +109,7 @@ END
|
|||||||
START=""
|
START=""
|
||||||
HAS_DOCKER=true
|
HAS_DOCKER=true
|
||||||
STARTUP_REGISTER=true
|
STARTUP_REGISTER=true
|
||||||
|
SYSTEMD_RELOAD=true
|
||||||
while (( "$#" )); do
|
while (( "$#" )); do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
-i)
|
-i)
|
||||||
@@ -127,6 +129,10 @@ while (( "$#" )); do
|
|||||||
STARTUP_REGISTER=false
|
STARTUP_REGISTER=false
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
|
--no-systemd-reload)
|
||||||
|
SYSTEMD_RELOAD=false
|
||||||
|
shift 1
|
||||||
|
;;
|
||||||
--) # end argument parsing
|
--) # end argument parsing
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
@@ -489,9 +495,8 @@ script
|
|||||||
end script" > /etc/init/start_containers.conf
|
end script" > /etc/init/start_containers.conf
|
||||||
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
|
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
|
||||||
|
|
||||||
if $START; then
|
if $START && $SYSTEMD_RELOAD; then
|
||||||
initctl reload-configuration
|
initctl reload-configuration
|
||||||
echo "BTCPay Server started"
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -510,7 +515,7 @@ elif $HAS_DOCKER; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Give SSH key to BTCPay
|
# Give SSH key to BTCPay
|
||||||
if [[ -f "$BTCPAY_HOST_SSHKEYFILE" ]]; then
|
if $START && [[ -f "$BTCPAY_HOST_SSHKEYFILE" ]]; then
|
||||||
echo "Copying $BTCPAY_SSHKEYFILE to BTCPayServer container"
|
echo "Copying $BTCPAY_SSHKEYFILE to BTCPayServer container"
|
||||||
docker cp "$BTCPAY_HOST_SSHKEYFILE" $(docker ps --filter "name=_btcpayserver_" -q):$BTCPAY_SSHKEYFILE
|
docker cp "$BTCPAY_HOST_SSHKEYFILE" $(docker ps --filter "name=_btcpayserver_" -q):$BTCPAY_SSHKEYFILE
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user