Replace the tor daemon on debian

merge-requests/30/head
Bob Mottram 2021-01-31 22:01:02 +00:00
parent 00b7cf430f
commit 6d2ecf32ff
1 changed files with 49 additions and 32 deletions

View File

@ -51,6 +51,23 @@ else
python3-pyqrcode python3-png python3-bandit python3-pyqrcode python3-png python3-bandit
fi fi
if [[ "$(uname -a)" == *'Debian'* ]]; then
echo 'Fixing the tor daemon'
{ echo '[Unit]';
echo 'Description=Anonymizing overlay network for TCP (multi-instance-master)';
echo '';
echo '[Service]';
echo 'Type=simple';
echo 'User=root';
echo 'Group=debian-tor';
echo 'ExecStart=/usr/bin/tor --defaults-torrc /usr/share/tor/tor-service-defaults-torrc -f /etc/tor/torrc --RunAsDaemon 0';
echo '';
echo '[Install]';
echo 'WantedBy=multi-user.target'; } > /lib/systemd/system/tor.service
systemctl daemon-reload
systemctl restart tor
fi
echo 'Cloning the epicyon repo' echo 'Cloning the epicyon repo'
if [ ! -d ${install_destination} ]; then if [ ! -d ${install_destination} ]; then
git clone https://gitlab.com/bashrc2/epicyon ${install_destination} git clone https://gitlab.com/bashrc2/epicyon ${install_destination}