1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libretranslate_ynh.git synced 2024-09-03 19:36:00 +02:00
This commit is contained in:
ericgaspar 2021-12-09 16:13:43 +01:00
parent afb0f8ea5d
commit cb902ed192
No known key found for this signature in database
GPG key ID: 574F281483054D44
5 changed files with 6 additions and 12 deletions

View file

@ -1,7 +1,6 @@
SOURCE_URL=https://github.com/LibreTranslate/LibreTranslate/archive/refs/tags/v1.2.3.tar.gz SOURCE_URL=https://github.com/LibreTranslate/LibreTranslate/archive/refs/tags/v1.2.5.tar.gz
SOURCE_SUM=2dcebaf97cb35fc5bb8c998d477ab0c7f9d5aabc96fd30dbf587bb10311be099 SOURCE_SUM=22b6880ef5dca0c98e9ce72d52ff8f1a70071080cfbcb3898d28b789f16f4a3e
SOURCE_SUM_PRG=sha256sum SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=
SOURCE_EXTRACT=true SOURCE_EXTRACT=true

View file

@ -1,9 +1,5 @@
location / { location / {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__; proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header Host $host;

View file

@ -6,7 +6,7 @@
"en": "Open Source Machine Translation API, entirely self-hosted", "en": "Open Source Machine Translation API, entirely self-hosted",
"fr": "API de traduction automatique Open Source, entièrement auto-hébergée" "fr": "API de traduction automatique Open Source, entièrement auto-hébergée"
}, },
"version": "1.2.3~ynh1", "version": "1.2.5~ynh1",
"url": "https://libretranslate.com/", "url": "https://libretranslate.com/",
"upstream": { "upstream": {
"license": "AGPL-3.0", "license": "AGPL-3.0",
@ -21,7 +21,7 @@
"email": "john.doe@example.com" "email": "john.doe@example.com"
}, },
"requirements": { "requirements": {
"yunohost": ">= 4.2.4" "yunohost": ">= 4.3.0"
}, },
"multi_instance": true, "multi_instance": true,
"services": [ "services": [

View file

@ -7,7 +7,7 @@
# dependencies used by the app # dependencies used by the app
pkg_dependencies="libicu-dev python3-venv python3-icu pkg-config python3 python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools" pkg_dependencies="libicu-dev python3-venv python3-icu pkg-config python3 python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools"
libretranslate_version="1.2.3" libretranslate_version="1.2.5"
#================================================= #=================================================
# PERSONAL HELPERS # PERSONAL HELPERS

View file

@ -37,8 +37,7 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
#================================================= #=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=1 ynh_script_progression --message="Validating restoration parameters..." --weight=1
test ! -d $final_path \ test ! -d $final_path || ynh_die --message="There is already a directory: $final_path "
|| ynh_die --message="There is already a directory: $final_path "
#================================================= #=================================================
# STANDARD RESTORATION STEPS # STANDARD RESTORATION STEPS