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
3e1d8ee969
commit
d78491a9e3
4 changed files with 12 additions and 5 deletions
|
@ -14,8 +14,14 @@
|
||||||
* 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'] = '__DOMAIN____PATH__';
|
$config['calibre_directory'] = '__CALIBRE__';
|
||||||
|
|
||||||
|
$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
|
||||||
*/
|
*/
|
||||||
|
@ -27,7 +33,7 @@
|
||||||
* 1 : enable
|
* 1 : enable
|
||||||
* 0 : disable
|
* 0 : disable
|
||||||
*/
|
*/
|
||||||
$config['cops_use_url_rewriting'] = "0";
|
$config['cops_use_url_rewriting'] = "1";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set language code to force a language (see lang/ directory for available languages).
|
* Set language code to force a language (see lang/ directory for available languages).
|
||||||
|
@ -41,6 +47,3 @@
|
||||||
* http://www.php.net/manual/en/timezones.php
|
* http://www.php.net/manual/en/timezones.php
|
||||||
*/
|
*/
|
||||||
$config['default_timezone'] = '__TIMEZONE__';
|
$config['default_timezone'] = '__TIMEZONE__';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "calibre",
|
"name": "calibre",
|
||||||
|
"type": "string",
|
||||||
"ask": {
|
"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 !!",
|
"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 !!!"
|
"fr": "Indiquez le chemin de votre bibliotheque Calibre. Ne la mettez pas dans /var/www/cops ou elle sera supprimée à la prochaine upgrade !!!"
|
||||||
|
|
|
@ -29,6 +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
|
||||||
|
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=$YNH_APP_INSTANCE_NAME
|
||||||
|
|
||||||
|
@ -51,6 +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
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STANDARD MODIFICATIONS
|
# STANDARD MODIFICATIONS
|
||||||
|
|
|
@ -20,6 +20,7 @@ domain=$(ynh_app_setting_get --app=$app --key=domain)
|
||||||
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
path_url=$(ynh_app_setting_get --app=$app --key=path)
|
||||||
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
|
||||||
language=$(ynh_app_setting_get --app=$app --key=language)
|
language=$(ynh_app_setting_get --app=$app --key=language)
|
||||||
|
calibre=$(ynh_app_setting_get --app=$app --key=calibre)
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# CHECK VERSION
|
# CHECK VERSION
|
||||||
|
|
Loading…
Add table
Reference in a new issue