Skip to content

Commit

Permalink
XMR: private API should be configured each time we start the containe…
Browse files Browse the repository at this point in the history
…r using the ENV variable. (#2853)

fixes xibosignageltd/xibo-private#901
  • Loading branch information
dasgarner authored Jan 14, 2025
1 parent baad63a commit be0bb71
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#
# Copyright (C) 2024 Xibo Signage Ltd
# Copyright (C) 2025 Xibo Signage Ltd
#
# Xibo - Digital Signage - https://xibosignage.com
#
Expand Down Expand Up @@ -192,8 +192,7 @@ then
# Set admin username/password
mysql -D $MYSQL_DATABASE -e "UPDATE \`user\` SET \`UserName\`='xibo_admin', \`UserPassword\`='5f4dcc3b5aa765d61d8327deb882cf99' WHERE \`UserID\` = 1 LIMIT 1"

# Set XMR public/private address
mysql -D $MYSQL_DATABASE -e "UPDATE \`setting\` SET \`value\`='http://$XMR_HOST:8081', \`userChange\`=0, \`userSee\`=0 WHERE \`setting\`='XMR_ADDRESS' LIMIT 1"
# Set XMR public address
mysql -D $MYSQL_DATABASE -e "UPDATE \`setting\` SET \`value\`='tcp://cms.example.org:9505' WHERE \`setting\`='XMR_PUB_ADDRESS' LIMIT 1"

# Set CMS Key
Expand All @@ -220,6 +219,10 @@ then
cp -v /var/www/cms/ca-certs/*.crt /usr/local/share/ca-certificates
/usr/sbin/update-ca-certificates

# Configure XMR private API
echo "Setting up XMR private API"
mysql -D $MYSQL_DATABASE -e "UPDATE \`setting\` SET \`value\`='http://$XMR_HOST:8081', \`userChange\`=0, \`userSee\`=0 WHERE \`setting\`='XMR_ADDRESS' LIMIT 1"

# Configure Quick Chart
echo "Setting up Quickchart"
mysql -D $MYSQL_DATABASE -e "UPDATE \`setting\` SET \`value\`='$CMS_QUICK_CHART_URL', userSee=0 WHERE \`setting\`='QUICK_CHART_URL' LIMIT 1"
Expand Down

0 comments on commit be0bb71

Please sign in to comment.