disable web port

This commit is contained in:
Bob Mottram 2017-03-05 23:28:36 +00:00
parent 54e77d2654
commit ff046906ef
1 changed files with 6 additions and 1 deletions

View File

@ -368,7 +368,12 @@ function install_tahoelafs {
echo $'Unable to create storage node'
exit 782523
fi
sed -i "s|tub.location.*|tub.location = disabled|g" $TAHOELAFS_STORAGE_CONFIG
if grep -q 'tub.location' $TAHOELAFS_STORAGE_CONFIG; then
sed -i "s|tub.location.*|tub.location = disabled|g" $TAHOELAFS_STORAGE_CONFIG
else
echo 'tub.location = disabled' >> $TAHOELAFS_STORAGE_CONFIG
fi
sed -i "s|web.port.*|web.port =|g" $TAHOELAFS_STORAGE_CONFIG
su -c '/home/tahoelafs/tahoelafs/venv/bin/python2 /home/tahoelafs/tahoelafs/venv/bin/tahoe start /home/tahoelafs/storage' - tahoelafs
create_tahoelafs_daemon "storage"