1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/calibreweb_ynh.git synced 2024-09-03 18:16:20 +02:00

test unset

This commit is contained in:
Krakinou 2018-12-15 17:46:22 +01:00
parent 53bd582968
commit 112c340997

View file

@ -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"