1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/komga_ynh.git synced 2024-09-03 19:36:07 +02:00

Merge pull request #45 from YunoHost-Apps/testing

Testing
This commit is contained in:
Éric Gaspar 2021-11-19 08:41:07 +01:00 committed by GitHub
commit 150ae22409
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 10 deletions

View file

@ -29,7 +29,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**Shipped version:** 0.132.1~ynh1
**Shipped version:** 0.132.2~ynh1
**Demo:** https://demo.komga.org

View file

@ -25,7 +25,7 @@ Komga is a free and open source comics/mangas server.
- Download book files
**Version incluse :** 0.132.1~ynh1
**Version incluse :** 0.132.2~ynh1
**Démo :** https://demo.komga.org

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/gotson/komga/releases/download/v0.132.1/komga-0.132.1.jar
SOURCE_SUM=6520fcbb8944fa3b1aa3c9221da9a05bda46c9b5c63f8b294359a824b25c61d2
SOURCE_URL=https://github.com/gotson/komga/releases/download/v0.132.2/komga-0.132.2.jar
SOURCE_SUM=001b8ebd798799fadd2d2947e6994f0ed32ec7f13265ae4c9f7992f073fe1b13
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=jar
SOURCE_IN_SUBDIR=false

View file

@ -1,11 +1,6 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
# Force usage of https
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_pass http://127.0.0.1:__PORT__;
proxy_redirect off;
proxy_set_header Host $host;

View file

@ -6,7 +6,7 @@
"en": "Media server for your comics, manga and magazines",
"fr": "Serveur multimédia pour vos bandes dessinées, mangas et magazines"
},
"version": "0.132.1~ynh1",
"version": "0.132.2~ynh1",
"url": "https://komga.org",
"upstream": {
"license": "MIT",

View file

@ -19,6 +19,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get --app=$app --key=domain)
port=$(ynh_app_setting_get --app=$app --key=port)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
datadir=$(ynh_app_setting_get --app=$app --key=datadir)
#=================================================
# STANDARD REMOVE
@ -57,6 +58,17 @@ ynh_script_progression --message="Removing app main directory and database..." -
# Remove the app directory securely
ynh_secure_remove --file="$final_path"
#=================================================
# REMOVE DATA DIR
#=================================================
# Remove the data directory if --purge option is used
if [ "${YNH_APP_PURGE:-0}" -eq 1 ]
then
ynh_script_progression --message="Removing app data directory..." --weight=1
ynh_secure_remove --file="$datadir"
fi
#=================================================
# REMOVE NGINX CONFIGURATION
#=================================================