mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 13:20:56 +02:00
Do not edit tor systemd script (#1506)
* Do not edit tor systemd script Systemd unit files under `/lib` should not be edited. This commit will make use of `/etc/systemd/system/tor@default.service.d/` instead * Update internet.tor.sh Suppress output of `tee`. * Update internet.tor.sh avoid duplicate lines Co-authored-by: frennkie <mail@rhab.de>
This commit is contained in:
parent
b16754e3f5
commit
5171e88c1a
@ -341,7 +341,10 @@ EOF
|
||||
sudo chown -R bitcoin:bitcoin /var/run/tor/ 2>/dev/null
|
||||
echo ""
|
||||
|
||||
echo "ReadWriteDirectories=-/mnt/hdd/tor" | sudo tee -a /lib/systemd/system/tor@default.service
|
||||
sudo mkdir -p /etc/systemd/system/tor@default.service.d
|
||||
if ! grep -Eq "^ReadWriteDirectories=" /etc/systemd/system/tor@default.service.d/raspiblitz.conf; then
|
||||
echo -e "[Service]\nReadWriteDirectories=-/mnt/hdd/tor" | sudo tee -a /etc/systemd/system/tor@default.service.d/raspiblitz.conf >/dev/null
|
||||
fi
|
||||
|
||||
else
|
||||
echo "TOR package/service is installed and was prepared earlier .. just activating again"
|
||||
|
Loading…
x
Reference in New Issue
Block a user