mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
en 2 fois
This commit is contained in:
parent
658818490d
commit
c4a8821a33
2 changed files with 2 additions and 9 deletions
|
@ -1,3 +1,2 @@
|
|||
nickname=\'$admin\',
|
||||
default_language=\'$language\',
|
||||
password=\'$pass_hash\'
|
||||
default_language=\'$language\'
|
|
@ -148,15 +148,9 @@ 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
|
||||
if [ -z "$final_path" ]; then echo "final_path is unset"; else echo "final_path is set to '$final_path'"; fi
|
||||
sleep 1s
|
||||
eval sqlite3 $final_path/app.db "$conf"
|
||||
|
||||
sqlite3 $final_path/app.db "UDPATE user SET password=$pass_hash WHERE ID=1"
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue