1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00

Update install

This commit is contained in:
ericgaspar 2021-12-09 16:22:38 +01:00
parent 87a73c4a9d
commit b24803e498
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -105,10 +105,10 @@ ynh_multimedia_addaccess $app
calibre_dir=/home/yunohost.multimedia/share/eBook calibre_dir=/home/yunohost.multimedia/share/eBook
ynh_app_setting_set --app=$app --key=calibre_dir --value=$calibre_dir ynh_app_setting_set --app=$app --key=calibre_dir --value=$calibre_dir
#Check if metadata.db file exists. If not create it (empty library) # #Check if metadata.db file exists. If not create it (empty library)
if [ ! -e "$calibre_dir"/metadata.db ]; then # if [ ! -e "$calibre_dir"/metadata.db ]; then
cp -a ../conf/metadata.db.empty $calibre_dir/metadata.db # cp -a ../conf/metadata.db.empty $calibre_dir/metadata.db
fi # fi
chmod 750 "$calibre_dir" chmod 750 "$calibre_dir"
chmod -R o-rwx "$calibre_dir" chmod -R o-rwx "$calibre_dir"