disable web port
This commit is contained in:
parent
54e77d2654
commit
ff046906ef
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue