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

Include the mpd control port within the tor configuration

parent 3e1a8e61
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,9 @@ function restore_remote_mpd {
}
function remove_mpd {
sed -i "/ ${MPD_PORT} /d" "/etc/torrc.d/${PROJECT_NAME}"
remove_onion_service mpd "${MPD_PORT_HTTP}"
if grep -q "mpd" /etc/crontab; then
sed -i "/mpd/d" /etc/crontab
fi
......@@ -223,6 +225,7 @@ function install_mpd {
increment_app_install_progress
MPD_ONION_HOSTNAME=$(add_onion_service mpd "${MPD_PORT_HTTP}" "${MPD_PORT_HTTP}")
sed -i "/ ${MPD_PORT_HTTP} /a HiddenServicePort ${MPD_PORT} 127.0.0.1:${MPD_PORT}" "/etc/torrc.d/${PROJECT_NAME}"
increment_app_install_progress
......
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