Skip to content
Snippets Groups Projects
Commit 4544fc93 authored by Bob Mottram's avatar Bob Mottram
Browse files

Use webadmin onion port variable

parent 6ee7845b
No related branches found
No related tags found
No related merge requests found
......@@ -199,7 +199,7 @@ function install_rsync {
increment_app_install_progress
if ! grep -q "127.0.0.1:$RSYNC_PORT" "/etc/torrc.d/${PROJECT_NAME}"; then
sed -i "/127.0.0.1:5783/a HiddenServicePort $RSYNC_PORT 127.0.0.1:$RSYNC_PORT" "/etc/torrc.d/${PROJECT_NAME}"
sed -i "/127.0.0.1:$WEBADMIN_ONION_PORT/a HiddenServicePort $RSYNC_PORT 127.0.0.1:$RSYNC_PORT" "/etc/torrc.d/${PROJECT_NAME}"
systemctl restart tor
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment