shithub: privategrid

Download patch

ref: 8ccb3f4ab818b2dbc238350dc41633014a14ca26
parent: de5b2bf9fd6b23805bc0d8094f5d1481126f0e72
author: glenda <glenda@9front.local>
date: Wed Dec 2 22:35:33 EST 2020

debug - the server seems to be running I have not tested any interaction yet

--- a/griddisk
+++ b/griddisk
@@ -1,5 +1,5 @@
 #! /bin/rc
-if($allownotls){
+if(test -n $allownotls){
 	hub -b listendisk
 	mount /srv/listendisk /n/listendisk
 	echo 'gridlisten1 -tv -d griddisk -m /n/griddisk tcp!*!9564 /bin/
@@ -7,4 +7,4 @@
 }
 hub -b listendisktls
 mount /srv/listendisktls /n/listendisktls
-echo 'gridlisten1 -tv -d griddisk -m /n/griddisk tcp!*!19564 tlssrv -A /bin/aux/trampoline tcp!127.1!9564' >>/n/listendisktls/io0
\ No newline at end of file
+echo 'gridlisten1 -tv -d griddisk -m /n/griddisk tcp!*!19564 tlssrv -A /bin/aux/trampoline tcp!127.1!9564' >>/n/listendisktls/io0
--- a/gridplumb
+++ b/gridplumb
@@ -1,6 +1,6 @@
 #!/bin/rc
 cd $home/gridmods
-if($allownotls){
+if(test -n $allownotls){
 	hub -b listenplumber
 	mount /srv/listenplumber /n/listenplumber
 	echo 'safeplumber/8.plumber -p gridplumbrules' >>/n/listenplumber/io0
--- a/initprivategrid
+++ b/initprivategrid
@@ -1,9 +1,9 @@
-#! /bin/rc
+#! /bin/rc -e
 prefix='grid'
 while (~ $1 -*){
 	switch($1){
 	case -u
-		allownotls = yes
+		allownotls='yes'
 		shift
 	case -p
 		shift
@@ -14,13 +14,8 @@
 		shift
 	}
 }
-if($inferno){
-	$prefix/01infernostart
-	$prefix/02infregstart
-	$prefix/03regreg
-}
 $prefix/griddisk
-$prefix/gribplumb
+$prefix/gridplumb
 if(~ /lib/grid/init){
 	/lib/grid/init
 }