From 112c34099702932e87e092e793f05a4675f299e3 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sat, 15 Dec 2018 17:46:22 +0100 Subject: [PATCH] test unset --- scripts/install | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install b/scripts/install index 8a62675..0cff8b6 100755 --- a/scripts/install +++ b/scripts/install @@ -148,6 +148,13 @@ conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settin eval sqlite3 $final_path/app.db "$conf" conf="\"UPDATE user SET $(. <(echo -E echo $(<../conf/init_calibre_db_user ))) WHERE ID=1\"" +if [ -z "$conf" ]; then echo "conf is unset"; else echo "conf is set to '$conf'"; fi +if [ -z "$admin" ]; then echo "admin is unset"; else echo "admin is set to '$admin'"; fi +if [ -z "$password" ]; then echo "password is unset"; else echo "password is set to '$password'"; fi +if [ -z "$pass_hash" ]; then echo "pass_hash is unset"; else echo "pass_hash is set to '$pass_hash'"; fi +if [ -z "$language" ]; then echo "language is unset"; else echo "language is set to '$language'"; fi; fi +if [ -z "$final_path" ]; then echo "final_path is unset"; else echo "final_path is set to '$final_path'"; fi + eval sqlite3 $final_path/app.db "$conf"