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

Merge pull request #55 from Jibec/origin/testing

upgrade to 1.20, fix nginx issue, open jsonrpc for kandroid
This commit is contained in:
Maniack Crudelis 2018-03-15 15:49:27 +01:00 committed by GitHub
commit fc6bcc6247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 8 deletions

View file

@ -33,7 +33,7 @@ From command line:
Infos
-----
Kanboard v1.0.48
Kanboard v1.2.0
Yunohost forum thread: <https://forum.yunohost.org/t/kanboard-package/78>

View file

@ -1,4 +1,4 @@
SOURCE_URL=https://github.com/kanboard/kanboard/releases/download/v1.0.48/kanboard-1.0.48.zip
SOURCE_SUM=a15f63f7582869fd9c777313bbb3cefbe3e4db34bae550b76e1e37d9c4b35a67
SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.0.tar.gz
SOURCE_SUM=0f7bc706ba8a6ac5223c69e6a8390e034b306ddd3d2663ba8f340355a4a69977
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=zip
SOURCE_FORMAT=tar.gz

View file

@ -1,4 +1,5 @@
location __PATH__ {
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ {
alias __FINALPATH__/;
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;

View file

@ -5,15 +5,15 @@
"description": {
"en": "Kanboard is a simple visual task board web application"
},
"version": "1.0.48",
"version": "1.2.0-0",
"url": "https://kanboard.net/",
"license": "AGPL-3.0",
"requirements": {
"yunohost": ">= 2.7.0"
},
"maintainer": {
"name": "mbugeia",
"email": "maxime@max.privy.place"
"name": "jibec",
"email": "jean-baptiste@holcroft.fr"
},
"multi_instance": true,
"services": [

View file

@ -150,6 +150,9 @@ then
# ynh panel is only comptable with non-root installation
ynh_replace_string " include conf.d/" " #include conf.d/" "$finalnginxconf"
ynh_store_file_checksum "$finalnginxconf"
else
ynh_replace_string "^#sub_path_only" "" "$finalnginxconf"
ynh_store_file_checksum "$finalnginxconf"
fi
@ -161,6 +164,8 @@ then
ynh_replace_string "define('HIDE_LOGIN_FORM'.*$" "define('HIDE_LOGIN_FORM', false);" "$config_php"
ynh_replace_string "define('REMEMBER_ME_AUTH'.*$" "define('REMEMBER_ME_AUTH', true);" "$config_php"
ynh_replace_string "define('DISABLE_LOGOUT'.*$" "define('DISABLE_LOGOUT', false);" "$config_php"
else
ynh_app_setting_set "$app" unprotected_uris "/jsonrpc.php"
fi
#=================================================

View file

@ -164,6 +164,9 @@ then
# ynh panel is only comptable with non-root installation
ynh_replace_string " include conf.d/" " #include conf.d/" "$finalnginxconf"
ynh_store_file_checksum "$finalnginxconf"
else
ynh_replace_string "^#sub_path_only" "" "$finalnginxconf"
ynh_store_file_checksum "$finalnginxconf"
fi
@ -175,6 +178,8 @@ then
ynh_replace_string "define('HIDE_LOGIN_FORM'.*$" "define('HIDE_LOGIN_FORM', false);" "$config_php"
ynh_replace_string "define('REMEMBER_ME_AUTH'.*$" "define('REMEMBER_ME_AUTH', true);" "$config_php"
ynh_replace_string "define('DISABLE_LOGOUT'.*$" "define('DISABLE_LOGOUT', false);" "$config_php"
else
ynh_app_setting_set "$app" unprotected_uris "/jsonrpc.php"
fi
#=================================================