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

correct password and language var

This commit is contained in:
Krakinou 2018-12-12 23:42:27 +01:00
parent 5959c02630
commit cdf189a93b
2 changed files with 4 additions and 4 deletions

View file

@ -64,6 +64,7 @@
},
{
"name": "language",
"type":"language",
"ask": {
"en": "Select a default language (you may change it later in the app",
"fr": "Choisissez une langue par défaut (vous pourrez la changer ultérieurement dans l'application"

View file

@ -24,11 +24,10 @@ domain=$YNH_APP_ARG_DOMAIN
path_url=$YNH_APP_ARG_PATH
admin=$YNH_APP_ARG_ADMIN
is_public=$YNH_APP_ARG_IS_PUBLIC
#language=$YNH_APP_ARG_LANGUAGE
#password=$YNH_APP_ARG_PASSWORD
language=$YNH_APP_ARG_LANGUAGE
password=$YNH_APP_ARG_PASSWORD
app=$YNH_APP_INSTANCE_NAME
calibre_dir=$3
lang=$5
#=================================================
# CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS
@ -143,7 +142,7 @@ systemctl stop $app
sqlite3 $final_path/app.db "UPDATE settings SET config_calibre_dir=\"$calibre_dir\" WHERE ID=1"
sqlite3 $final_path/app.db "UPDATE settings SET config_port=$port WHERE ID=1"
sqlite3 $final_path/app.db "UPDATE user SET nickname=\"$admin\" WHERE ID=1"
sqlite3 $final_path/app.db "UPDATE user SET default_language=\"$lang\" WHERE ID=1"
sqlite3 $final_path/app.db "UPDATE user SET default_language=\"$language\" WHERE ID=1"
sqlite3 $final_path/app.db "UPDATE user SET password='$(python ../conf/generate_password_hash.py $password $final_path/vendor)' WHERE ID=1"