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 #61 from YunoHost-Apps/testing

Testing
This commit is contained in:
Maniack Crudelis 2018-04-16 21:52:25 +02:00 committed by GitHub
commit 09fdd15f6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 7 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

@ -13,6 +13,7 @@
setup_private=1
setup_public=1
upgrade=1
upgrade=1 from_commit=f159f7a9bdbe470ec026edf09a6eebf10f23425e
backup_restore=1
multi_instance=1
wrong_user=1
@ -33,3 +34,7 @@
Level 8=0
Level 9=0
Level 10=0
;;; Upgrade options
; commit=f159f7a9bdbe470ec026edf09a6eebf10f23425e
name=Create check_process
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=Yes&

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,13 +5,17 @@
"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": "jibec",
"email": "jean-baptiste@holcroft.fr"
},
"previous_maintainers": {
"name": "mbugeia",
"email": "maxime@max.privy.place"
},

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

@ -89,7 +89,8 @@ ynh_system_user_create "$app"
#=================================================
chown -R root:root "$final_path"
chown -R "$app" "$final_path"/{data,plugins}
chown -R "$app" "$final_path"/{data,plugins,sessions}
chmod -R 700 "$final_path"/sessions
#=================================================
# RESTORE THE PHP-FPM CONFIGURATION

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
#=================================================