Move systemd commands

This commit is contained in:
Bob Mottram 2016-05-30 15:37:58 +01:00
parent bf11e3c6fd
commit 0f3cd4b7d5
1 changed files with 2 additions and 4 deletions

View File

@ -645,6 +645,7 @@ function mesh_tox_node {
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 'systemctl enable 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 {
done
echo ')' >> $TOX_BOOTSTRAP_CONFIG
fi
chroot "$rootdir" systemctl enable tox-bootstrapd.service
}
function mesh_tox_avahi {
@ -754,6 +753,7 @@ function mesh_tox_avahi {
echo 'make install' >> $TEMP_SCRIPT
echo 'toxavahi' >> $TEMP_SCRIPT
echo 'echo "* * * * * root toxavahi > /dev/null" >> /etc/crontab' >> $TEMP_SCRIPT
echo 'systemctl restart avahi-daemon' >> $TEMP_SCRIPT
echo 'exit 0' >> $TEMP_SCRIPT
chmod +x $TEMP_SCRIPT
cp $TEMP_SCRIPT $rootdir/root/
@ -765,8 +765,6 @@ function mesh_tox_avahi {
exit 62835
fi
rm $TEMP_SCRIPT
chroot "$rootdir" systemctl restart avahi-daemon
}
function mesh_tox_client {