mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
commit
09fdd15f6c
8 changed files with 28 additions and 7 deletions
|
@ -33,7 +33,7 @@ From command line:
|
||||||
|
|
||||||
Infos
|
Infos
|
||||||
-----
|
-----
|
||||||
Kanboard v1.0.48
|
Kanboard v1.2.0
|
||||||
|
|
||||||
Yunohost forum thread: <https://forum.yunohost.org/t/kanboard-package/78>
|
Yunohost forum thread: <https://forum.yunohost.org/t/kanboard-package/78>
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
setup_private=1
|
setup_private=1
|
||||||
setup_public=1
|
setup_public=1
|
||||||
upgrade=1
|
upgrade=1
|
||||||
|
upgrade=1 from_commit=f159f7a9bdbe470ec026edf09a6eebf10f23425e
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
wrong_user=1
|
wrong_user=1
|
||||||
|
@ -33,3 +34,7 @@
|
||||||
Level 8=0
|
Level 8=0
|
||||||
Level 9=0
|
Level 9=0
|
||||||
Level 10=0
|
Level 10=0
|
||||||
|
;;; Upgrade options
|
||||||
|
; commit=f159f7a9bdbe470ec026edf09a6eebf10f23425e
|
||||||
|
name=Create check_process
|
||||||
|
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=Yes&
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
SOURCE_URL=https://github.com/kanboard/kanboard/releases/download/v1.0.48/kanboard-1.0.48.zip
|
SOURCE_URL=https://github.com/kanboard/kanboard/archive/v1.2.0.tar.gz
|
||||||
SOURCE_SUM=a15f63f7582869fd9c777313bbb3cefbe3e4db34bae550b76e1e37d9c4b35a67
|
SOURCE_SUM=0f7bc706ba8a6ac5223c69e6a8390e034b306ddd3d2663ba8f340355a4a69977
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=zip
|
SOURCE_FORMAT=tar.gz
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
location __PATH__ {
|
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||||
|
location __PATH__/ {
|
||||||
alias __FINALPATH__/;
|
alias __FINALPATH__/;
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
|
|
@ -5,13 +5,17 @@
|
||||||
"description": {
|
"description": {
|
||||||
"en": "Kanboard is a simple visual task board web application"
|
"en": "Kanboard is a simple visual task board web application"
|
||||||
},
|
},
|
||||||
"version": "1.0.48",
|
"version": "1.2.0-0",
|
||||||
"url": "https://kanboard.net/",
|
"url": "https://kanboard.net/",
|
||||||
"license": "AGPL-3.0",
|
"license": "AGPL-3.0",
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 2.7.0"
|
"yunohost": ">= 2.7.0"
|
||||||
},
|
},
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
"name": "jibec",
|
||||||
|
"email": "jean-baptiste@holcroft.fr"
|
||||||
|
},
|
||||||
|
"previous_maintainers": {
|
||||||
"name": "mbugeia",
|
"name": "mbugeia",
|
||||||
"email": "maxime@max.privy.place"
|
"email": "maxime@max.privy.place"
|
||||||
},
|
},
|
||||||
|
|
|
@ -150,6 +150,9 @@ then
|
||||||
# ynh panel is only comptable with non-root installation
|
# ynh panel is only comptable with non-root installation
|
||||||
ynh_replace_string " include conf.d/" " #include conf.d/" "$finalnginxconf"
|
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"
|
ynh_store_file_checksum "$finalnginxconf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -161,6 +164,8 @@ then
|
||||||
ynh_replace_string "define('HIDE_LOGIN_FORM'.*$" "define('HIDE_LOGIN_FORM', false);" "$config_php"
|
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('REMEMBER_ME_AUTH'.*$" "define('REMEMBER_ME_AUTH', true);" "$config_php"
|
||||||
ynh_replace_string "define('DISABLE_LOGOUT'.*$" "define('DISABLE_LOGOUT', false);" "$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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -89,7 +89,8 @@ ynh_system_user_create "$app"
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
chown -R root:root "$final_path"
|
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
|
# RESTORE THE PHP-FPM CONFIGURATION
|
||||||
|
|
|
@ -164,6 +164,9 @@ then
|
||||||
# ynh panel is only comptable with non-root installation
|
# ynh panel is only comptable with non-root installation
|
||||||
ynh_replace_string " include conf.d/" " #include conf.d/" "$finalnginxconf"
|
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"
|
ynh_store_file_checksum "$finalnginxconf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -175,6 +178,8 @@ then
|
||||||
ynh_replace_string "define('HIDE_LOGIN_FORM'.*$" "define('HIDE_LOGIN_FORM', false);" "$config_php"
|
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('REMEMBER_ME_AUTH'.*$" "define('REMEMBER_ME_AUTH', true);" "$config_php"
|
||||||
ynh_replace_string "define('DISABLE_LOGOUT'.*$" "define('DISABLE_LOGOUT', false);" "$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
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Reference in a new issue