Change toxcore daemon

This commit is contained in:
Bob Mottram 2016-05-30 14:36:02 +01:00
parent efae204a4b
commit 181eaa5d96
1 changed files with 1 additions and 2 deletions

View File

@ -644,6 +644,7 @@ function mesh_tox_node {
echo 'make install' >> $TEMP_SCRIPT
echo 'cp /usr/local/lib/libtoxcore* /usr/lib/' >> $TEMP_SCRIPT
echo "cp $INSTALL_DIR/other/bootstrap_daemon/tox-bootstrapd.service /etc/systemd/system/" >> $TEMP_SCRIPT
echo "sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' /etc/systemd/system/tox-bootstrapd.service" >> $TEMP_SCRIPT
echo 'exit 0' >> $TEMP_SCRIPT
chmod +x $TEMP_SCRIPT
cp $TEMP_SCRIPT $rootdir/root/
@ -715,8 +716,6 @@ function mesh_tox_node {
echo ')' >> $TOX_BOOTSTRAP_CONFIG
fi
chroot "$rootdir" sed -i 's|ExecStart=.*|ExecStart=/usr/local/bin/tox-bootstrapd --config /etc/tox-bootstrapd.conf|g' /etc/systemd/system/tox-bootstrapd.service
chroot "$rootdir" systemctl daemon-reload
chroot "$rootdir" systemctl enable tox-bootstrapd.service
}