Change tox bootstrap user in amnesic
This commit is contained in:
parent
8d69b56702
commit
78508be07d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue