Skip to content

Commit ba36b36

Browse files
committed
web-ui: Make write access optional (doh :/ )
1 parent d83e1fa commit ba36b36

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

run/web-ui

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ source "$script_dir/_common"
1818
APP_NAME="RDF DB Web UI"
1919
dataset_name="okh"
2020
port="3030"
21+
update_arg_opt=""
2122

2223
function print_help() {
2324

@@ -28,6 +29,8 @@ function print_help() {
2829
echo "Options:"
2930
echo " -h, --help"
3031
echo " Print this usage help and exit"
32+
echo " -u, --update"
33+
echo " Allow updates (via SPARQL Update and SPARQL HTTP Update)"
3134
echo " -p, --port PORT"
3235
echo " Run the web service on a different port (default: $port)"
3336
echo "Examples:"
@@ -48,6 +51,9 @@ do
4851
print_help
4952
exit 0
5053
;;
54+
-u|--update)
55+
update_arg_opt="--update"
56+
;;
5157
-p|--port)
5258
port="$1"
5359
shift
@@ -74,7 +80,7 @@ echo "Or query it with SPARQL on: $query_url"
7480
echo
7581
cd "$db_dir"
7682
"$jena_fuseki_server" \
77-
--update \
83+
$update_arg_opt \
7884
--tdb2 \
7985
--loc "$db_dir" \
8086
--port "$port" \

0 commit comments

Comments
 (0)