Disable port

This commit is contained in:
Bob Mottram 2017-03-05 23:34:08 +00:00
parent ff046906ef
commit f08b54efa9
1 changed files with 5 additions and 0 deletions

View File

@ -373,6 +373,11 @@ function install_tahoelafs {
else
echo 'tub.location = disabled' >> $TAHOELAFS_STORAGE_CONFIG
fi
if grep -q 'tub.port' $TAHOELAFS_STORAGE_CONFIG; then
sed -i "s|tub.port.*|tub.port = disabled|g" $TAHOELAFS_STORAGE_CONFIG
else
echo 'tub.port = 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