You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
415 B
Plaintext
15 lines
415 B
Plaintext
1 year ago
|
#!/bin/sh
|
||
|
|
||
|
config_dir=`uci -q get btcpayserver.@btcpayserver[0].config_path`
|
||
|
|
||
|
data_dir=`docker inspect --format '{{.Mounts}}' btcpayserver | grep -Eom1 '[^ ]+/_data /var/www/html local true ' | cut -d' ' -f1`
|
||
|
|
||
|
if [ -n "$data_dir" -a "$data_dir" != "$config_dir" ]; then
|
||
|
uci -q batch <<-EOF >/dev/null
|
||
|
set btcpayserver.@btcpayserver[0].config_path="$data_dir"
|
||
|
commit btcpayserver
|
||
|
EOF
|
||
|
fi
|
||
|
|
||
|
exit 0
|