mirror of
https://github.com/YunoHost-Apps/cops_ynh.git
synced 2024-09-03 18:25:57 +02:00
Fix
This commit is contained in:
parent
b24803e498
commit
3370a753c7
2 changed files with 12 additions and 11 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in a new issue