1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00
dokuwiki_ynh/scripts/change_url
Alexandre Aubin a8a4a392b1
Testing (#97)
* Apply example_ynh

* Cleanup ynh_clean_setup

* Fix "php conf location" breaking backup script

See  https://github.com/YunoHost-Apps/dokuwiki_ynh/issues/96

the bug:
> php file is still in folder: '/etc/php/7.4/fpm/pool.d/' after upgrade
> instead of '8.1' folder.

Changing the "ynh_add_fpm_config" for the fix. The helper should do the
"php version handling" instead of the package itself

Example taken on the package:
https://github.com/YunoHost-Apps/wordpress_ynh/blob/testing/scripts/upgrade

* enh use helper "ynh_add_config" to manage file

* bump package version and changelog

* Auto-update README

* Version 2 (#98)

* v2

* v2

* Auto-update README

* Update tests.toml

* Update manifest.toml

* Update LICENSE

* cleaning

* cleaning

---------

Co-authored-by: yunohost-bot <yunohost@yunohost.org>

---------

Co-authored-by: yalh76 <yalh@yahoo.com>
Co-authored-by: Gofannon <gofannon+github@riseup.net>
Co-authored-by: yunohost-bot <yunohost@yunohost.org>
Co-authored-by: Éric Gaspar <46165813+ericgaspar@users.noreply.github.com>
2023-05-16 14:01:26 +02:00

34 lines
1.2 KiB
Bash

#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD MODIFICATIONS
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2
ynh_change_url_nginx_config
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# UPGRADE FAIL2BAN
#=================================================
ynh_script_progression --message="Reconfiguring Fail2Ban..." --weight=6
ynh_add_fail2ban_config --logpath="/var/log/nginx/$new_domain-error.log" --failregex="^.*authentication failure. while reading response header from upstream, client: <HOST>,.*POST $new_path.*$" --max_retry=5
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --last