From 730b8c32e301235b39330385008e0d6ee11887b1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Jul 2016 21:08:58 +0100 Subject: [PATCH] run zeronetavahi as root --- src/freedombone-app-zeronet | 2 +- src/zeronetavahi | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-app-zeronet b/src/freedombone-app-zeronet index 18f081c0..f7514bc0 100755 --- a/src/freedombone-app-zeronet +++ b/src/freedombone-app-zeronet @@ -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 diff --git a/src/zeronetavahi b/src/zeronetavahi index 09a69001..eea9ce4b 100755 --- a/src/zeronetavahi +++ b/src/zeronetavahi @@ -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