1
0
Fork 0
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:
Krakinou 2018-12-15 17:57:54 +01:00
parent 658818490d
commit c4a8821a33
2 changed files with 2 additions and 9 deletions

View file

@ -1,3 +1,2 @@
nickname=\'$admin\', nickname=\'$admin\',
default_language=\'$language\', default_language=\'$language\'
password=\'$pass_hash\'

View file

@ -148,15 +148,9 @@ conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settin
eval sqlite3 $final_path/app.db "$conf" eval sqlite3 $final_path/app.db "$conf"
conf="\"UPDATE user SET $(. <(echo -E echo $(<../conf/init_calibre_db_user))) WHERE ID=1\"" 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 sleep 1s
eval sqlite3 $final_path/app.db "$conf" eval sqlite3 $final_path/app.db "$conf"
sqlite3 $final_path/app.db "UDPATE user SET password=$pass_hash WHERE ID=1"