mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34:00 +00:00
Add options for resellers
This commit is contained in:
parent
7102e03148
commit
dea1440801
BIN
rootfs/standard/opt/mynode/custom/logo_custom.png
Normal file
BIN
rootfs/standard/opt/mynode/custom/logo_custom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 131 KiB |
BIN
rootfs/standard/opt/mynode/custom/logo_dark_custom.png
Normal file
BIN
rootfs/standard/opt/mynode/custom/logo_dark_custom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 103 KiB |
|
@ -58,6 +58,21 @@ if [ ! -f /var/lib/mynode/.expanded_rootfs ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Customize logo for resellers
|
||||||
|
if [ -f /opt/mynode/custom/reseller ]; then
|
||||||
|
if [ -f /opt/mynode/custom/logo_custom.png ]; then
|
||||||
|
cp -f /opt/mynode/custom/logo_custom.png /var/www/mynode/static/images/logo.png
|
||||||
|
else
|
||||||
|
cp -f /var/www/mynode/static/images/logo_original.png /var/www/mynode/static/images/logo.png
|
||||||
|
fi
|
||||||
|
if [ -f /opt/mynode/custom/logo_dark_custom.png ]; then
|
||||||
|
cp -f /opt/mynode/custom/logo_dark_custom.png /var/www/mynode/static/images/logo_dark.png
|
||||||
|
else
|
||||||
|
cp -f /var/www/mynode/static/images/logo_dark_original.png /var/www/mynode/static/images/logo_dark.png
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Verify we are in a clean state
|
# Verify we are in a clean state
|
||||||
if [ $IS_RASPI -eq 1 ] || [ $IS_ROCKPRO64 -eq 1 ]; then
|
if [ $IS_RASPI -eq 1 ] || [ $IS_ROCKPRO64 -eq 1 ]; then
|
||||||
dphys-swapfile swapoff || true
|
dphys-swapfile swapoff || true
|
||||||
|
|
|
@ -165,6 +165,12 @@ def get_recent_upgrade_logs():
|
||||||
pass
|
pass
|
||||||
return logs
|
return logs
|
||||||
|
|
||||||
|
#==================================
|
||||||
|
# Reseller Info
|
||||||
|
#==================================
|
||||||
|
def is_device_from_reseller():
|
||||||
|
return os.path.isfile("/opt/mynode/custom/reseller")
|
||||||
|
|
||||||
|
|
||||||
#==================================
|
#==================================
|
||||||
# Device Info
|
# Device Info
|
||||||
|
|
|
@ -466,6 +466,7 @@ def index():
|
||||||
"lnd_ready": lnd_ready,
|
"lnd_ready": lnd_ready,
|
||||||
"tor_status_color": tor_status_color,
|
"tor_status_color": tor_status_color,
|
||||||
"is_installing_docker_images": is_installing_docker_images(),
|
"is_installing_docker_images": is_installing_docker_images(),
|
||||||
|
"is_device_from_reseller": is_device_from_reseller(),
|
||||||
"electrs_status_color": electrs_status_color,
|
"electrs_status_color": electrs_status_color,
|
||||||
"electrs_status": Markup(electrs_status),
|
"electrs_status": Markup(electrs_status),
|
||||||
"electrs_enabled": is_electrs_enabled(),
|
"electrs_enabled": is_electrs_enabled(),
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 86 KiB |
BIN
rootfs/standard/var/www/mynode/static/images/logo_original.png
Normal file
BIN
rootfs/standard/var/www/mynode/static/images/logo_original.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 120 KiB |
|
@ -73,6 +73,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% if not is_device_from_reseller %}
|
||||||
<div class="app_tile">
|
<div class="app_tile">
|
||||||
<div class="app_status_icon {{ dojo_status_color }}"></div>
|
<div class="app_status_icon {{ dojo_status_color }}"></div>
|
||||||
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/samourai.png")}}"/></div>
|
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/samourai.png")}}"/></div>
|
||||||
|
@ -107,6 +108,7 @@
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
<div class="app_tile">
|
<div class="app_tile">
|
||||||
<div class="app_status_icon {% if product_key_skipped %}gray{% else %} {{mempoolspace_status_color}} {% endif %}"></div>
|
<div class="app_status_icon {% if product_key_skipped %}gray{% else %} {{mempoolspace_status_color}} {% endif %}"></div>
|
||||||
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/mempoolspace.png")}}"/></div>
|
<div class="app_logo"><img class="app_logo_icon" src="{{ url_for('static', filename="images/mempoolspace.png")}}"/></div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user