1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cops_ynh.git synced 2024-09-03 18:25:57 +02:00
This commit is contained in:
ericgaspar 2021-12-09 16:47:03 +01:00
parent b24803e498
commit 3370a753c7
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 12 additions and 11 deletions

View file

@ -16,13 +16,13 @@
*/
$config['calibre_directory'] = '__CALIBRE_DIR__/';
/*
* $config['calibre_internal_directory'] = '/Calibre/';
*
* $config['cops_full_url'] = '__DOMAIN____PATH__/ ';
*
* $config['cops_x_accel_redirect'] = "X-Accel-Redirect";
*/
$config['calibre_internal_directory'] = '/Calibre/';
$config['cops_full_url'] = '__DOMAIN____PATH__/ ';
$config['cops_x_accel_redirect'] = "X-Accel-Redirect";
/*
* Catalog's title
*/

View file

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