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

Update manifest with help

Update upgrade script with ldap
This commit is contained in:
Krakinou 2019-01-29 23:04:48 +01:00
parent 58f499ea37
commit afcf08fefa
2 changed files with 28 additions and 7 deletions

View file

@ -57,14 +57,22 @@
"en": "Is it a public application?",
"fr": "Est-ce une application publique ?"
},
"help":{
"en":"No will set the library in /home/yunohost.multimedia/admin/eBook, but if you set thje library as public",
"fr":"Non parametrera la bibliothèque pour /home/yunohost.multimedia/admin/eBook sauf si la bibliothèque est également publique"
},
"default": false
},
{
"name": "language",
"optional": true,
"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)"
"en": "Select a default language",
"fr": "Choisissez une langue par défaut"
},
"help":{
"en":"You may change it later in the app",
"fr":"Vous pourrez la changer ultérieurement dans l'application"
},
"choices": [ "fr", "en", "es", "de"],
"default": "fr"
@ -74,8 +82,12 @@
"type":"boolean",
"optional": true,
"ask": {
"en": "Do you want to allow uploading of books (you may change it later in the app)?",
"fr": "Voulez vous autoriser l'upload de livres (vous pourrez le changer ultérieurement dans l'application)?"
"en": "Do you want to allow uploading of books?",
"fr": "Voulez vous autoriser l'upload de livres?"
},
"help":{
"en":"You may change it later in the app",
"fr":"Vous pourrez le changer ultérieurement dans l'application"
},
"default": false
},
@ -84,8 +96,12 @@
"type":"boolean",
"optional": true,
"ask": {
"en": "Do you want to allow access to the library to all Yunohost users? Yes will set the library in /home/yunohost.multimedia/share/eBook",
"fr": "Voulez vous autoriser l'accès à la bibliothèque à tous les utilisateurs Yunohost? Yes parametrera la bibliothèque pour /home/yunohost.multimedia/share/eBook"
"en": "Do you want to allow access to the library to all Yunohost users? ",
"fr": "Voulez vous autoriser l'accès à la bibliothèque à tous les utilisateurs Yunohost?"
},
"help":{
"en":"Yes will set the library in /home/yunohost.multimedia/share/eBook",
"fr":"Oui parametrera la bibliothèque pour /home/yunohost.multimedia/share/eBook"
},
"default": true
}

View file

@ -71,7 +71,7 @@ ynh_add_nginx_config
#=================================================
# UPGRADE DEPENDENCIES
#=================================================
ynh_print_info "Download and install dependencies"
ynh_install_app_dependencies $PKG_DEPENDENCIES
pip install --target $final_path/vendor -r $final_path/requirements.txt
@ -92,6 +92,11 @@ ynh_system_user_create $app
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
ynh_backup_if_checksum_is_different "$final_path/app.db"
#set database settings as per conf file
conf="\"UPDATE settings SET $(. <(echo -E echo $(<../conf/init_calibre_db_settings))) WHERE ID=1\""
eval sqlite3 $final_path/app.db "$conf"
# Recalculate and store the checksum of the file for the next upgrade.
ynh_store_file_checksum "$final_path/app.db"