First pass at full fork pretty much complete.
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ cleanup() {
|
||||
}
|
||||
trap cleanup EXIT INT TERM
|
||||
|
||||
mkdir -p "$dataDir" "$hallsDir" "$recordingsDir"
|
||||
mkdir -p "$dataDir" "$hallsDir" "$recordingsDir/$hallName"
|
||||
|
||||
hallFile="$hallsDir/$hallName.json"
|
||||
escapedAdminUsername="$(json_string "$adminUsername")"
|
||||
@@ -47,7 +47,7 @@ cat > "$hallFile" <<EOF
|
||||
{"users":{"$escapedAdminUsername":{"password":"$escapedAdminPassword","permissions":"op"}},"wildcard-user":{"password":"$escapedGuestPassword","permissions":"present"},"allow-recording":true}
|
||||
EOF
|
||||
|
||||
if [[ ! -x "$binary" ]]; then
|
||||
if [[ ! -x "$binary" ]] || find . -name '*.go' -newer "$binary" -print -quit | grep -q .; then
|
||||
echo "Building $binary"
|
||||
go build -o "$binary" .
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user