mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-01 00:18:10 +02:00
#2162 Homer fixes
This commit is contained in:
parent
573d2edbe9
commit
9db352bc76
@ -289,7 +289,7 @@ else
|
||||
fi
|
||||
|
||||
# LNDMANAGE process choice
|
||||
choice="off"; check=$(echo "${CHOICES}" | grep -c "m")
|
||||
choice="off"; check=$(echo "${CHOICES}" | grep -c "ä")
|
||||
if [ ${check} -eq 1 ]; then choice="on"; fi
|
||||
if [ "${lndmanage}" != "${choice}" ]; then
|
||||
echo "lndmanage Setting changed .."
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
server {
|
||||
listen localhost:4092;
|
||||
listen [::1]:4092;
|
||||
listen [::]:4092;
|
||||
server_name _;
|
||||
|
||||
access_log /var/log/nginx/access_homer.log;
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
server {
|
||||
listen localhost:4093;
|
||||
listen [::1]:4093;
|
||||
listen [::]:4093;
|
||||
server_name _;
|
||||
|
||||
include /etc/nginx/snippets/ssl-params.conf;
|
||||
|
@ -22,12 +22,13 @@ if [ "$1" = "menu" ]; then
|
||||
echo "# collecting status info ... (please wait)"
|
||||
source <(sudo /home/admin/config.scripts/bonus.homer.sh status)
|
||||
|
||||
|
||||
# get network info
|
||||
localip=$(ip addr | grep 'state UP' -A2 | egrep -v 'docker0' | grep 'eth0\|wlan0' | tail -n1 | awk '{print $2}' | cut -f1 -d'/')
|
||||
toraddress=$(sudo cat /mnt/hdd/tor/homer/hostname 2>/dev/null)
|
||||
fingerprint=$(openssl x509 -in /mnt/hdd/app-data/nginx/tls.cert -fingerprint -noout | cut -d"=" -f2)
|
||||
|
||||
additionalInfo="Edit /mnt/hdd/app-data/homer/config.yml to customize Homer"
|
||||
|
||||
if [ "${runBehindTor}" = "on" ] && [ ${#toraddress} -gt 0 ]; then
|
||||
|
||||
# TOR
|
||||
@ -200,7 +201,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
source /mnt/hdd/raspiblitz.conf
|
||||
if [ "${runBehindTor}" = "on" ]; then
|
||||
# make sure to keep in sync with internet.tor.sh script
|
||||
/home/admin/config.scripts/internet.hiddenservice.sh homer 80 4092 443 4093
|
||||
/home/admin/config.scripts/tor.onion-service.sh homer 80 4092 443 4093
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
@ -239,7 +240,7 @@ if [ "$1" = "0" ] || [ "$1" = "off" ]; then
|
||||
# Hidden Service if Tor is active
|
||||
if [ "${runBehindTor}" = "on" ]; then
|
||||
# make sure to keep in sync with internet.tor.sh script
|
||||
/home/admin/config.scripts/internet.hiddenservice.sh off homer
|
||||
/home/admin/config.scripts/tor.onion-service.sh off homer
|
||||
fi
|
||||
|
||||
echo "# OK Homer removed."
|
||||
|
Loading…
x
Reference in New Issue
Block a user