mirror of
https://github.com/YunoHost-Apps/kanboard_ynh.git
synced 2024-09-03 19:36:17 +02:00
Merge branch 'testing' into data_dir
This commit is contained in:
commit
bae949b82d
7 changed files with 15 additions and 32 deletions
|
@ -36,7 +36,7 @@ Kanboard is a free and open source Kanban project management software.
|
|||
## Documentation and resources
|
||||
|
||||
* Official app website: <https://kanboard.net>
|
||||
* Official admin documentation: <https://docs.kanboard.org/en/latest/>
|
||||
* Official admin documentation: <https://docs.kanboard.org/>
|
||||
* Upstream app code repository: <https://github.com/kanboard/kanboard>
|
||||
* Report a bug: <https://github.com/YunoHost-Apps/kanboard_ynh/issues>
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ Kanboard est un logiciel de gestion de projet Kanban gratuit et open source.
|
|||
## Documentations et ressources
|
||||
|
||||
* Site officiel de l’app : <https://kanboard.net>
|
||||
* Documentation officielle de l’admin : <https://docs.kanboard.org/en/latest/>
|
||||
* Documentation officielle de l’admin : <https://docs.kanboard.org/>
|
||||
* Dépôt de code officiel de l’app : <https://github.com/kanboard/kanboard>
|
||||
* Signaler un bug : <https://github.com/YunoHost-Apps/kanboard_ynh/issues>
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ define('DB_ODBC_DSN', 'kanboard');
|
|||
define('LDAP_AUTH', false);
|
||||
|
||||
// LDAP server protocol, hostname and port URL (ldap[s]://hostname:port)
|
||||
define('LDAP_SERVER', '');
|
||||
define('LDAP_SERVER', 'ldap://127.0.0.1:389');
|
||||
|
||||
// LDAP server port (389 by default)
|
||||
define('LDAP_PORT', 389);
|
||||
|
|
|
@ -13,8 +13,9 @@ maintainers = []
|
|||
license = "MIT"
|
||||
website = "https://kanboard.net"
|
||||
demo = "https://demo.yunohost.org/kanboard/"
|
||||
admindoc = "https://docs.kanboard.org/en/latest/"
|
||||
admindoc = "https://docs.kanboard.org/"
|
||||
code = "https://github.com/kanboard/kanboard"
|
||||
fund = "https://kanboard.org/#donations"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.2"
|
||||
|
|
|
@ -13,7 +13,6 @@ source /usr/share/yunohost/helpers
|
|||
# RETRIEVE ARGUMENTS FROM THE MANIFEST
|
||||
#=================================================
|
||||
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
fpm_footprint="low"
|
||||
fpm_free_footprint=0
|
||||
fpm_usage="low"
|
||||
|
@ -52,6 +51,13 @@ ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
|||
# Create a dedicated NGINX config
|
||||
ynh_add_nginx_config
|
||||
|
||||
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
# Create a dedicated Fail2Ban config
|
||||
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: <HOST>,.*$" --max_retry=5
|
||||
|
||||
#=================================================
|
||||
# SPECIFIC SETUP
|
||||
#=================================================
|
||||
|
@ -76,25 +82,6 @@ pushd $install_dir
|
|||
php$phpversion cli db:migrate --no-interaction --verbose
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
# SETUP CRON
|
||||
#=================================================
|
||||
ynh_script_progression --message="Setuping a cron..." --weight=1
|
||||
|
||||
ynh_add_config --template="../conf/cron" --destination="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
chmod 644 "/etc/cron.d/$app"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALIZATION
|
||||
#=================================================
|
||||
# SETUP FAIL2BAN
|
||||
#=================================================
|
||||
ynh_script_progression --message="Configuring Fail2Ban..." --weight=10
|
||||
|
||||
# Create a dedicated Fail2Ban config
|
||||
ynh_add_fail2ban_config --logpath="/var/log/nginx/${domain}-error.log" --failregex="^.*authentication failure\" while reading response header from upstream, client: <HOST>,.*$" --max_retry=5
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -48,16 +48,13 @@ ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./
|
|||
#=================================================
|
||||
ynh_script_progression --message="Restoring system configurations related to $app..." --weight=1
|
||||
|
||||
ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
|
||||
ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf"
|
||||
ynh_systemd_action --action=restart --service_name=fail2ban
|
||||
|
||||
ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||
|
||||
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
|
||||
|
||||
# Recreate a dedicated php-fpm config
|
||||
ynh_add_fpm_config --usage=$fpm_usage --footprint=$fpm_footprint
|
||||
ynh_restore_file --origin_path="/etc/fail2ban/jail.d/$app.conf"
|
||||
ynh_restore_file --origin_path="/etc/fail2ban/filter.d/$app.conf"
|
||||
ynh_systemd_action --action=restart --service_name=fail2ban
|
||||
|
||||
ynh_restore_file --origin_path="/etc/cron.d/$app"
|
||||
chown root: "/etc/cron.d/$app"
|
||||
|
|
|
@ -97,8 +97,6 @@ ynh_script_progression --message="Upgrading the app..." --weight=2
|
|||
pushd $install_dir
|
||||
# Launch database migration
|
||||
php$phpversion cli db:migrate --no-interaction --verbose
|
||||
# Launch plugins migration
|
||||
php$phpversion cli plugin:upgrade --no-interaction --verbose
|
||||
popd
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue