mirror of
https://github.com/YunoHost-Apps/calibreweb_ynh.git
synced 2024-09-03 18:16:20 +02:00
Install : correct folder check
This commit is contained in:
parent
36ca5ade7b
commit
a51f08acfb
2 changed files with 4 additions and 5 deletions
|
@ -70,7 +70,7 @@
|
|||
"en": "Is it a public application?",
|
||||
"fr": "Est-ce une application publique ?"
|
||||
},
|
||||
"default": true
|
||||
"default": false
|
||||
},
|
||||
{
|
||||
"name": "language",
|
||||
|
@ -78,7 +78,7 @@
|
|||
"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)"
|
||||
},
|
||||
"choices": ["fr", "en"],
|
||||
"choices": [ "fr", "en", "es", "de"],
|
||||
"default": "fr"
|
||||
},
|
||||
{
|
||||
|
@ -86,7 +86,7 @@
|
|||
"type":"boolean",
|
||||
"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 la changer ultérieurement dans l'application)?"
|
||||
"fr": "Voulez vous autoriser l'upload de livres (vous pourrez le changer ultérieurement dans l'application)?"
|
||||
},
|
||||
"default": false
|
||||
},
|
||||
|
|
|
@ -119,8 +119,7 @@ ynh_add_systemd_config
|
|||
#=================================================
|
||||
|
||||
#Check if library folder exists. If not create it
|
||||
test ! -e "$calibre_dir"
|
||||
if [[ $? = 0 ]] ; then
|
||||
if [ ! -e "$calibre_dir" ]; then
|
||||
ynh_print_info "Create calibre library folder $calibre_dir"
|
||||
mkdir -p $calibre_dir
|
||||
chown -R $app:$app $calibre_dir
|
||||
|
|
Loading…
Add table
Reference in a new issue