run zeronetavahi as root

This commit is contained in:
Bob Mottram 2016-07-18 21:08:58 +01:00
parent 17326a0cff
commit 730b8c32e3
2 changed files with 3 additions and 1 deletions

View File

@ -555,7 +555,7 @@ function mesh_zeronet {
chroot "$rootdir" chown -R tracker:tracker $MESH_INSTALL_DIR/tracker
# publish regularly
echo "* * * * * zeronet zeronetavahi > /dev/null" >> $rootdir/etc/crontab
echo "* * * * * root zeronetavahi > /dev/null" >> $rootdir/etc/crontab
chroot "$rootdir" systemctl enable tracker.service
chroot "$rootdir" systemctl enable zeronet.service

View File

@ -447,4 +447,6 @@ assemble_web_page ${MAIL_FILE} $ZERONET_INSTALL
assemble_web_page ${FORUM_FILE} $ZERONET_INSTALL
assemble_web_page ${TOX_USERS_FILE} $ZERONET_INSTALL
chown -R zeronet:zeronet $ZERONET_INSTALL
exit 0