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

Correct warning message if existing

This commit is contained in:
Krakinou 2018-12-16 16:16:59 +01:00
parent 76969711f6
commit 11f751096c

View file

@ -131,6 +131,7 @@ fi
#Check if metadata.db file exists. If not create it (empty library)
if [ ! -e "$calibre_dir"/metadata.db ]; then
cp -a ../src/calibre/. $calibre_dir
chown $app:$app $calibre_dir/*
fi
@ -200,6 +201,6 @@ systemctl start $app
# WARNING FOR READ ACCESS
#=================================================
if [[ ! $create_dir = 0 ]] ; then
if [[ $create_dir = 0 ]] ; then
ynh_print_warn "Please, give required access to $app user to the $calibre_dir folder."
fi