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

Change tox bootstrap user in amnesic

parent 8d69b567
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
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