1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hedgedoc_ynh.git synced 2024-09-03 19:25:52 +02:00
* Upgrade to 1.9.1
This commit is contained in:
Éric Gaspar 2021-12-03 08:52:18 +01:00 committed by GitHub
parent eb22f7bdd5
commit cd1359a173
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 13 additions and 22 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
Collaborative editor to work on notes written in Markdown
**Shipped version:** 1.9.0~ynh1
**Shipped version:** 1.9.1~ynh1
**Demo:** https://demo.hedgedoc.org/

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Éditeur collaboratif pour travailler sur des notes en Markdown
**Version incluse :** 1.9.0~ynh1
**Version incluse :** 1.9.1~ynh1
**Démo :** https://demo.hedgedoc.org/

View file

@ -1,6 +1,5 @@
SOURCE_URL=https://github.com/hedgedoc/hedgedoc/releases/download/1.9.0/hedgedoc-1.9.0.tar.gz
SOURCE_SUM=976d908ea81025e72277d2815fd51ccf462c09d10451c16893b187d95f21e837
SOURCE_URL=https://github.com/hedgedoc/hedgedoc/releases/download/1.9.1/hedgedoc-1.9.1.tar.gz
SOURCE_SUM=19a92d2ad4354e0975be980d375cb1a53a575e54cab89cb54ea2f042b6126ed6
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=

View file

@ -1,10 +1,5 @@
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": "Collaborative editor to work on notes written in Markdown",
"fr": "Éditeur collaboratif pour travailler sur des notes en Markdown"
},
"version": "1.9.0~ynh1",
"version": "1.9.1~ynh1",
"url": "https://hedgedoc.org",
"upstream": {
"license": "free",
@ -20,7 +20,7 @@
"name": "eric_G"
},
"requirements": {
"yunohost": ">= 4.2.4"
"yunohost": ">= 4.3.0"
},
"multi_instance": true,
"services": [
@ -30,8 +30,7 @@
"install" : [
{
"name": "domain",
"type": "domain",
"example": "domain.org"
"type": "domain"
},
{
"name": "path",

View file

@ -7,7 +7,7 @@
# dependencies used by the app
pkg_dependencies="postgresql apt-transport-https"
nodejs_version=14
nodejs_version=16
#=================================================
# PERSONAL HELPERS

View file

@ -114,10 +114,10 @@ ynh_add_nginx_config
#==============================================
ynh_script_progression --message="Building HedgeDoc... (this will take some time and resources!)" --weight=20
pushd "$final_path" || ynh_die
pushd "$final_path"
ynh_use_nodejs
bin/setup
popd || ynh_die
popd
#=================================================
# SETUP SYSTEMD

View file

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

View file

@ -27,7 +27,6 @@ db_pwd=$(ynh_app_setting_get --app=$app --key=psqlpwd)
#=================================================
# CHECK VERSION
#=================================================
ynh_script_progression --message="Checking version..." --weight=2
upgrade_type=$(ynh_check_app_version_changed)
@ -116,10 +115,10 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Building HedgeDoc... (this will take some time and resources!)" --weight=20
pushd "$final_path" || ynh_die
pushd "$final_path"
ynh_use_nodejs
bin/setup
popd || ynh_die
popd
fi
#=================================================