diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh index f6ccbd45..d5101479 100755 --- a/src/freedombone-image-mesh +++ b/src/freedombone-image-mesh @@ -424,6 +424,12 @@ function configure_toxcore { if [ -f $MESH_AMNESIC ]; then # change to the amnesic mount sed -i 's|/var/lib/tox-bootstrapd|/media/tox-bootstrapd|g' /etc/tox-bootstrapd.conf + systemctl stop tox-bootstrapd.service + sed -i 's|WorkingDirectory=.*|WorkingDirectory=/media/tox-bootstrapd|g' /etc/systemd/system/tox-bootstrapd.service + systemctl daemon-reload + userdel -r tox-bootstrapd + useradd --home-dir /media/tox-bootstrapd --create-home --system --shell /sbin/nologin --comment "Account to run Tox's DHT bootstrap daemon" --user-group tox-bootstrapd + chmod 700 /media/tox-bootstrapd fi echo $'Enabling toxcore daemon' >> $INSTALL_LOG