From 11f751096c1439db2398a3b401ca90276320eae7 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Sun, 16 Dec 2018 16:16:59 +0100 Subject: [PATCH] Correct warning message if existing --- scripts/install | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index c8e17ef..1475d83 100755 --- a/scripts/install +++ b/scripts/install @@ -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 \ No newline at end of file