This commit is contained in:
Bob Mottram 2015-09-03 19:06:44 +01:00
parent 61331afaae
commit c09b186f68
1 changed files with 4 additions and 3 deletions

View File

@ -34,6 +34,7 @@
WEB_PAGE_TITLE="Freedombone Mesh" WEB_PAGE_TITLE="Freedombone Mesh"
TRACKER_PORT=6969 TRACKER_PORT=6969
ZERONET_INSTALL=/opt/zeronet ZERONET_INSTALL=/opt/zeronet
ZERONET_USER_HOME=/home/zeronet
MY_USERNAME=$USER MY_USERNAME=$USER
if [ ! -d $ZERONET_INSTALL ]; then if [ ! -d $ZERONET_INSTALL ]; then
@ -221,7 +222,7 @@ rm -f $TEMPFILE
cp -f $BOOTSTRAP_FILE.new $BOOTSTRAP_FILE cp -f $BOOTSTRAP_FILE.new $BOOTSTRAP_FILE
rm -f $BOOTSTRAP_FILE.new rm -f $BOOTSTRAP_FILE.new
if [ -d /home/zeronet ]; then if [ -d $ZERONET_USER_HOME ]; then
sudo chown zeronet:zeronet $BOOTSTRAP_FILE sudo chown zeronet:zeronet $BOOTSTRAP_FILE
fi fi
@ -237,14 +238,14 @@ create_index
# create a web page showing the available blogs # create a web page showing the available blogs
cat ${BLOGS_FILE}-header.html ${BLOGS_FILE}.new ${BLOGS_FILE}-footer.html > ${BLOGS_FILE}.html cat ${BLOGS_FILE}-header.html ${BLOGS_FILE}.new ${BLOGS_FILE}-footer.html > ${BLOGS_FILE}.html
rm -f ${BLOGS_FILE}.new rm -f ${BLOGS_FILE}.new
if [ -d /home/zeronet ]; then if [ -d $ZERONET_USER_HOME ]; then
sudo chown zeronet:zeronet $BLOGS_FILE sudo chown zeronet:zeronet $BLOGS_FILE
fi fi
# create a web page showing the available fora # create a web page showing the available fora
cat ${FORUM_FILE}-header.html ${FORUM_FILE}.new ${FORUM_FILE}-footer.html > ${FORUM_FILE}.html cat ${FORUM_FILE}-header.html ${FORUM_FILE}.new ${FORUM_FILE}-footer.html > ${FORUM_FILE}.html
rm -f ${FORUM_FILE}.new rm -f ${FORUM_FILE}.new
if [ -d /home/zeronet ]; then if [ -d $ZERONET_USER_HOME ]; then
sudo chown zeronet:zeronet $FORUM_FILE sudo chown zeronet:zeronet $FORUM_FILE
fi fi