From 40f9f95a4f8bc1d1fda55fb5315bcdf3ac125b60 Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Mon, 7 Sep 2020 17:14:28 +0200 Subject: [PATCH] Minor improvements to examples --- examples/auth/auth.json | 2 +- examples/simple/job_import.sh | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/auth/auth.json b/examples/auth/auth.json index 64fb752..a8a0751 100644 --- a/examples/auth/auth.json +++ b/examples/auth/auth.json @@ -8,7 +8,7 @@ { "name": "do_nothing", "title": "Test form", - "description": "You should only see this if you've entered the correct password", + "description": "All users that logged in should be able to see this.", "submit_title": "Do nothing", "script": "job_do_nothing.sh", "fields": [ diff --git a/examples/simple/job_import.sh b/examples/simple/job_import.sh index e589470..c50bdce 100755 --- a/examples/simple/job_import.sh +++ b/examples/simple/job_import.sh @@ -6,5 +6,9 @@ MYSQL="mysql --defaults-file=$MYSQL_DEFAULTS_FILE" echo "This is what would be executed if this wasn't a fake script:" echo -echo "echo 'DROP DATABASE $target_db' | $MYSQL" -echo "$MYSQL ${target_db} < ${sql_file}" +echo " echo 'DROP DATABASE $target_db' | $MYSQL" +echo " $MYSQL ${target_db} < ${sql_file}" + +echo +echo "The uploaded file was $(stat --printf="%s" $sql_file) bytes" +echo "The (binary) md5 hash of the uploaded file is: $(md5sum -b $sql_file | cut -d " " -f1)"