|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/bin/sh
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
|
|
APP_NAME="node-red"
|
|
|
|
APP_NAME="btcpayserver"
|
|
|
|
|
|
|
|
|
|
|
|
ACTION="${1}"
|
|
|
|
ACTION="${1}"
|
|
|
|
shift 1
|
|
|
|
shift 1
|
|
|
@ -16,7 +16,7 @@ do_install_detail() {
|
|
|
|
IMAGE_NAME=$(uci get btcpayserver.@btcpayserver[0].image_name 2>/dev/null)
|
|
|
|
IMAGE_NAME=$(uci get btcpayserver.@btcpayserver[0].image_name 2>/dev/null)
|
|
|
|
username=$(uci get btcpayserver.@btcpayserver[0].username 2>/dev/null)
|
|
|
|
username=$(uci get btcpayserver.@btcpayserver[0].username 2>/dev/null)
|
|
|
|
password=$(uci get btcpayserver.@btcpayserver[0].password 2>/dev/null)
|
|
|
|
password=$(uci get btcpayserver.@btcpayserver[0].password 2>/dev/null)
|
|
|
|
APP_NAME="node-red"
|
|
|
|
APP_NAME="btcpayserver"
|
|
|
|
|
|
|
|
|
|
|
|
GEN_PASS=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c 14; echo)
|
|
|
|
GEN_PASS=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c 14; echo)
|
|
|
|
GEN_PASS2=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c 14; echo)
|
|
|
|
GEN_PASS2=$(< /dev/urandom tr -dc A-Za-z0-9 2>/dev/null | head -c 14; echo)
|
|
|
@ -30,7 +30,7 @@ do_install_detail() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
[ -z "$port" ] && port=1880
|
|
|
|
[ -z "$port" ] && port=1880
|
|
|
|
[ -z "$IMAGE_NAME" ] && IMAGE_NAME="btcpayserver/node-red:latest"
|
|
|
|
[ -z "$IMAGE_NAME" ] && IMAGE_NAME="btcpayserver"
|
|
|
|
|
|
|
|
|
|
|
|
rm -r /opt/docker2/compose/btcpayserver 2>/dev/null
|
|
|
|
rm -r /opt/docker2/compose/btcpayserver 2>/dev/null
|
|
|
|
mkdir -p /opt/docker2/compose/btcpayserver/
|
|
|
|
mkdir -p /opt/docker2/compose/btcpayserver/
|
|
|
|