cron style
This commit is contained in:
parent
730b8c32e3
commit
ad9bf8cb8e
@ -504,7 +504,7 @@ EOF
|
|||||||
if [ ! -f $rootdir/usr/local/bin/toxavahi ]; then
|
if [ ! -f $rootdir/usr/local/bin/toxavahi ]; then
|
||||||
exit 3621729
|
exit 3621729
|
||||||
fi
|
fi
|
||||||
echo "* * * * * root /usr/local/bin/toxavahi > /dev/null" >> $rootdir/etc/crontab
|
echo "*/1 * * * * root /usr/local/bin/toxavahi > /dev/null" >> $rootdir/etc/crontab
|
||||||
}
|
}
|
||||||
|
|
||||||
function mesh_tox_client {
|
function mesh_tox_client {
|
||||||
|
@ -555,7 +555,7 @@ function mesh_zeronet {
|
|||||||
chroot "$rootdir" chown -R tracker:tracker $MESH_INSTALL_DIR/tracker
|
chroot "$rootdir" chown -R tracker:tracker $MESH_INSTALL_DIR/tracker
|
||||||
|
|
||||||
# publish regularly
|
# publish regularly
|
||||||
echo "* * * * * root zeronetavahi > /dev/null" >> $rootdir/etc/crontab
|
echo "*/1 * * * * root /usr/local/bin/zeronetavahi > /dev/null" >> $rootdir/etc/crontab
|
||||||
|
|
||||||
chroot "$rootdir" systemctl enable tracker.service
|
chroot "$rootdir" systemctl enable tracker.service
|
||||||
chroot "$rootdir" systemctl enable zeronet.service
|
chroot "$rootdir" systemctl enable zeronet.service
|
||||||
|
@ -172,7 +172,7 @@ function install_toxid {
|
|||||||
|
|
||||||
if ! grep -Fxq "toxavahi" /etc/crontab; then
|
if ! grep -Fxq "toxavahi" /etc/crontab; then
|
||||||
cp /etc/crontab /tmp/crontab
|
cp /etc/crontab /tmp/crontab
|
||||||
echo "* * * * * root toxavahi > /dev/null" >> /tmp/crontab
|
echo "*/1 * * * * root toxavahi > /dev/null" >> /tmp/crontab
|
||||||
sudo cp /tmp/crontab /etc/crontab
|
sudo cp /tmp/crontab /etc/crontab
|
||||||
rm /tmp/crontab
|
rm /tmp/crontab
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user