Apparemment l’install s’est bien passée, voir l’extrait du log.
2024-05-23 07:48:41,384: DEBUG - + test -n /piwigo
2024-05-23 07:48:41,384: DEBUG - + local path_url_slash_less=/piwigo
2024-05-23 07:48:41,384: DEBUG - + ynh_replace_string --match_string=__PATH__/ --replace_string=/piwigo/ --target_file=/etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,474: DEBUG - + sed --in-place $'s\001__PATH__/\001/piwigo/\001g' /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,478: DEBUG - + ynh_replace_string --match_string=__PATH__ --replace_string=/piwigo --target_file=/etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,569: DEBUG - + sed --in-place $'s\001__PATH__\001/piwigo\001g' /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,572: DEBUG - + test -n piwigo
2024-05-23 07:48:41,573: DEBUG - + ynh_replace_string --match_string=__NAME__ --replace_string=piwigo --target_file=/etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,663: DEBUG - + sed --in-place $'s\001__NAME__\001piwigo\001g' /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,666: DEBUG - + ynh_replace_string --match_string=__NAMETOCHANGE__ --replace_string=piwigo --target_file=/etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,763: DEBUG - + sed --in-place $'s\001__NAMETOCHANGE__\001piwigo\001g' /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,770: DEBUG - + ynh_replace_string --match_string=__USER__ --replace_string=piwigo --target_file=/etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,860: DEBUG - + sed --in-place $'s\001__USER__\001piwigo\001g' /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,863: DEBUG - + test -n ''
2024-05-23 07:48:41,864: DEBUG - + dpkg --compare-versions 2.0 lt 2
2024-05-23 07:48:41,868: DEBUG - + test -n ''
2024-05-23 07:48:41,870: DEBUG - ++ sed 's@__\([^.]*\)__@\L\1@g'
2024-05-23 07:48:41,871: DEBUG - ++ sort --unique
2024-05-23 07:48:41,874: DEBUG - ++ grep -oP '__[A-Z0-9]+?[A-Z0-9_]*?[A-Z0-9]*?__' /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,879: DEBUG - + uniques_vars=('failregex')
2024-05-23 07:48:41,883: DEBUG - + ynh_store_file_checksum --file=/etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,884: DEBUG - + update_only=0
2024-05-23 07:48:41,910: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_piwigo.conf
2024-05-23 07:48:41,911: DEBUG - ++ cut '--delimiter= ' --fields=1
2024-05-23 07:48:41,914: DEBUG - ++ md5sum /etc/fail2ban/filter.d/piwigo.conf
2024-05-23 07:48:41,918: DEBUG - + ynh_app_setting_set --app=piwigo --key=checksum__etc_fail2ban_filter.d_piwigo.conf --value=7d7881e9304ed364d2f03894d75f128d
2024-05-23 07:48:41,918: DEBUG - + local _globalapp=piwigo
2024-05-23 07:48:42,017: DEBUG - + app=piwigo
2024-05-23 07:48:42,017: DEBUG - + [[ checksum__etc_fail2ban_filter.d_piwigo.conf =~ (unprotected|protected|skipped)_ ]]
2024-05-23 07:48:42,017: DEBUG - + ynh_app_setting set piwigo checksum__etc_fail2ban_filter.d_piwigo.conf 7d7881e9304ed364d2f03894d75f128d
2024-05-23 07:48:42,105: DEBUG - + '[' -n '' ']'
2024-05-23 07:48:42,105: DEBUG - + unset backup_file_checksum
2024-05-23 07:48:42,105: DEBUG - + '[' -z /var/log/piwigoFailedLogins.log ']'
2024-05-23 07:48:42,105: DEBUG - + mkdir -p /var/log/piwigo
2024-05-23 07:48:42,109: DEBUG - + '[' '!' -f /var/log/piwigoFailedLogins.log ']'
2024-05-23 07:48:42,109: DEBUG - + chown -R piwigo:piwigo /var/log/piwigo
2024-05-23 07:48:42,111: DEBUG - + chmod -R u=rwX,g=rX,o= /var/log/piwigo
2024-05-23 07:48:42,114: DEBUG - + ynh_systemd_action --service_name=fail2ban --action=reload '--line_match=(Started|Reloaded) Fail2Ban Service' --log_path=systemd
2024-05-23 07:48:42,334: DEBUG - + service_name=fail2ban
2024-05-23 07:48:42,334: DEBUG - + action=reload
2024-05-23 07:48:42,334: DEBUG - + line_match='(Started|Reloaded) Fail2Ban Service'
2024-05-23 07:48:42,334: DEBUG - + length=20
2024-05-23 07:48:42,334: DEBUG - + log_path=systemd
2024-05-23 07:48:42,334: DEBUG - + timeout=300
2024-05-23 07:48:42,334: DEBUG - + '[' reload == stop ']'
2024-05-23 07:48:42,335: DEBUG - + [[ -n (Started|Reloaded) Fail2Ban Service ]]
2024-05-23 07:48:42,337: DEBUG - ++ mktemp
2024-05-23 07:48:42,340: DEBUG - + local templog=/tmp/tmp.nXBkqqjfqm
2024-05-23 07:48:42,341: DEBUG - + '[' systemd == systemd ']'
2024-05-23 07:48:42,341: DEBUG - + local pid_tail=1669526
2024-05-23 07:48:42,341: DEBUG - + '[' reload == reload ']'
2024-05-23 07:48:42,341: DEBUG - + action=reload-or-restart
2024-05-23 07:48:42,343: DEBUG - + journalctl --unit=fail2ban --follow --since=-0 --quiet
2024-05-23 07:48:42,345: DEBUG - ++ cut -d+ -f1
2024-05-23 07:48:42,346: DEBUG - ++ date --utc --rfc-3339=seconds
2024-05-23 07:48:42,351: DEBUG - + local 'time_start=2024-05-23 05:48:42 UTC'
2024-05-23 07:48:42,351: DEBUG - + systemctl reload-or-restart fail2ban
2024-05-23 07:48:42,683: DEBUG - + [[ -n (Started|Reloaded) Fail2Ban Service ]]
2024-05-23 07:48:43,553: DEBUG - + break
2024-05-23 07:48:43,554: DEBUG - + '[' 1 -ge 3 ']'
2024-05-23 07:48:43,554: DEBUG - + '[' 1 -eq 300 ']'
2024-05-23 07:48:43,554: DEBUG - + ynh_clean_check_starting
2024-05-23 07:48:43,554: DEBUG - + '[' -n 1669526 ']'
2024-05-23 07:48:43,554: DEBUG - + kill -SIGTERM 1669526
2024-05-23 07:48:43,554: DEBUG - + '[' -n /tmp/tmp.nXBkqqjfqm ']'
2024-05-23 07:48:43,554: DEBUG - + ynh_secure_remove --file=/tmp/tmp.nXBkqqjfqm
2024-05-23 07:48:43,555: INFO - The service fail2ban has correctly executed the action reload-or-restart.
2024-05-23 07:48:43,588: DEBUG - ++ grep 'WARNING.*piwigo.*'
2024-05-23 07:48:43,590: DEBUG - ++ tail --lines=50
2024-05-23 07:48:43,592: DEBUG - ++ journalctl --no-hostname --unit=fail2ban
2024-05-23 07:48:44,209: DEBUG - + local fail2ban_error=
2024-05-23 07:48:44,315: DEBUG - + ynh_exit_properly
2024-05-23 07:48:44,315: DEBUG - + [[ upgrade =~ ^install$|^upgrade$|^restore$ ]]
2024-05-23 07:48:44,316: INFO - [####################] > Upgrade of piwigo completed
2024-05-23 07:48:45,320: DEBUG - Checking that required services are up and running...
2024-05-23 07:48:47,169: SUCCESS - piwigo mis à jour
Tu peux désinstaller l’application puis restorer le backup.
Le fait de désinstaller l’application ne supprimerait pas les photos et la BDD ?
Au pire je pense que je vais la jouer à l’ancienne
- sauvegarde de la BDD
- sauvegarde de l’arborescence des photos
- suppression de piwigo
- installation de piwigo
- restauration de la BDD
- restauration de l’arborescence des photos