zeronet ownership

This commit is contained in:
Bob Mottram 2016-07-16 17:21:44 +01:00
parent e32fe64fe0
commit 42f3e56087
1 changed files with 7 additions and 1 deletions

View File

@ -232,6 +232,8 @@ function install_zeronet_blog {
create_avahi_service zeronet-blog "zeronet-blog" udp $ZERONET_PORT "${ZERONET_URL}/${ZERONET_BLOG_ADDRESS}"
cp /tmp/zeronet-blog.service /etc/avahi/services/zeronet-blog.service
chown -R zeronet:zeronet $MESH_INSTALL_DIR/zeronet
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
mkdir -p /home/$MY_USERNAME/.config/zeronet
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
@ -331,6 +333,8 @@ function install_zeronet_mail {
create_avahi_service zeronet-mail "zeronet-mail" udp $ZERONET_PORT "${ZERONET_URL}/${ZERONET_MAIL_ADDRESS}"
cp /tmp/zeronet-mail.service /etc/avahi/services/zeronet-mail.service
chown -R zeronet:zeronet $MESH_INSTALL_DIR/zeronet
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
mkdir -p /home/$MY_USERNAME/.config/zeronet
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
@ -424,6 +428,8 @@ function install_zeronet_forum {
create_avahi_service zeronet-forum "zeronet-forum" udp $ZERONET_PORT "${ZERONET_URL}/${ZERONET_FORUM_ADDRESS}"
sudo cp /tmp/zeronet-forum.service /etc/avahi/services/zeronet-forum.service
chown -R zeronet:zeronet $MESH_INSTALL_DIR/zeronet
if [ ! -d /home/$MY_USERNAME/.config/zeronet ]; then
mkdir -p /home/$MY_USERNAME/.config/zeronet
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.config
@ -548,7 +554,7 @@ function mesh_zeronet {
chroot "$rootdir" chown -R tracker:tracker $MESH_INSTALL_DIR/tracker
# publish regularly
echo "* * * * * root zeronetavahi > /dev/null" >> $rootdir/etc/crontab
echo "* * * * * zeronet zeronetavahi > /dev/null" >> $rootdir/etc/crontab
chroot "$rootdir" systemctl enable tracker.service
chroot "$rootdir" systemctl enable zeronet.service