mirror of
https://github.com/YunoHost-Apps/komga_ynh.git
synced 2024-09-03 19:36:07 +02:00
commit
150ae22409
6 changed files with 17 additions and 10 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue