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
30bc6e65a4
commit
61340c2d11
5 changed files with 11 additions and 23 deletions
|
@ -5,9 +5,6 @@
|
||||||
admin="john"
|
admin="john"
|
||||||
language="fr"
|
language="fr"
|
||||||
is_public=1
|
is_public=1
|
||||||
password="password"
|
|
||||||
runninguser="www-data"
|
|
||||||
calibre="/home/yunohost.app/nextcloud/johndoe/"
|
|
||||||
; Checks
|
; Checks
|
||||||
pkg_linter=1
|
pkg_linter=1
|
||||||
setup_sub_dir=1
|
setup_sub_dir=1
|
||||||
|
|
|
@ -14,14 +14,15 @@
|
||||||
* containing all the formats.
|
* containing all the formats.
|
||||||
* BEWARE : it has to end with a /
|
* BEWARE : it has to end with a /
|
||||||
*/
|
*/
|
||||||
$config['calibre_directory'] = '__CALIBRE__';
|
$config['calibre_directory'] = '__DATADIR__';
|
||||||
|
|
||||||
$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
|
* Catalog's title
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -5,7 +5,7 @@ Standards-Version: 1.0.1
|
||||||
|
|
||||||
Package: cops-deps
|
Package: cops-deps
|
||||||
Version: 1.2-1
|
Version: 1.2-1
|
||||||
Depends: php5-gd, php5-sqlite, php5-json, php5-intl
|
Depends: php7.3-gd, php7.3-sqlite, php7.3-json, php7.3-intl
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Description: meta package for cops dependencies
|
Description: meta package for cops dependencies
|
||||||
COPS stands for Calibre OPDS (and HTML) Php Server.
|
COPS stands for Calibre OPDS (and HTML) Php Server.
|
||||||
|
|
|
@ -49,16 +49,6 @@
|
||||||
"choices": ["fr", "en"],
|
"choices": ["fr", "en"],
|
||||||
"default": "fr"
|
"default": "fr"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "calibre",
|
|
||||||
"type": "string",
|
|
||||||
"ask": {
|
|
||||||
"en": "Indicate the location of Calibre library. DON'T store it in your /var/www/cops or it will be removed on next upgrade !!",
|
|
||||||
"fr": "Indiquez le chemin de votre bibliotheque Calibre. Ne la mettez pas dans /var/www/cops ou elle sera supprimée à la prochaine upgrade !!!"
|
|
||||||
},
|
|
||||||
"example": "/home/yunohost.app/owncloud/data/johndoe/files/eBooks",
|
|
||||||
"default": "/home/yunohost.app/owncloud/data/johndoe/files/eBooks"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "is_public",
|
"name": "is_public",
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
|
|
|
@ -29,7 +29,7 @@ path_url=$YNH_APP_ARG_PATH
|
||||||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||||
language=$YNH_APP_ARG_LANGUAGE
|
language=$YNH_APP_ARG_LANGUAGE
|
||||||
timezone="$(cat /etc/timezone)"
|
timezone="$(cat /etc/timezone)"
|
||||||
calibre=$YNH_APP_ARG_CALIBRE
|
phpversion=$YNH_PHP_VERSION
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ ynh_script_progression --message="Storing installation settings..." --weight=1
|
||||||
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
ynh_app_setting_set --app=$app --key=domain --value=$domain
|
||||||
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
ynh_app_setting_set --app=$app --key=path --value=$path_url
|
||||||
ynh_app_setting_set --app=$app --key=language --value=$language
|
ynh_app_setting_set --app=$app --key=language --value=$language
|
||||||
ynh_app_setting_set --app=$app --key=calibre --value=$calibre
|
ynh_app_setting_set --app=$app --key=phpversion --value=$phpversion
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# INSTALL DEPENDENCIES
|
# INSTALL DEPENDENCIES
|
||||||
|
|
Loading…
Reference in a new issue