mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 05:05:12 +01:00
TOR first, fixed when OFF, small tweaks
This commit is contained in:
@@ -79,8 +79,12 @@ main() {
|
||||
installation_info)
|
||||
# GET http://192.168.111.152:8080/info
|
||||
if [ -f "$DB_PATH/info.json" ]; then
|
||||
# Replace tor_hostname_placeholder with actual tor hostname from tor file
|
||||
response=$(sed "s/tor_hostname_placeholder/`tr -d '\n\r' < tor/hidden_service/hostname`/g" "$DB_PATH/info.json")
|
||||
if [ -f "tor/hidden_service/hostname" ]; then
|
||||
# Replace tor_hostname_placeholder with actual tor hostname from tor file
|
||||
response=$(sed "s/tor_hostname_placeholder/`tr -d '\n\r' < tor/hidden_service/hostname`/g" "$DB_PATH/info.json")
|
||||
else
|
||||
response=$(cat "$DB_PATH/info.json")
|
||||
fi
|
||||
else
|
||||
response='{ "error": "missing installation data" }'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user