From d9e9f932817a4531a181dcc4dbc4ec5226178135 Mon Sep 17 00:00:00 2001 From: Gofannon Date: Thu, 18 Aug 2022 20:46:27 +0200 Subject: [PATCH] purge plugin "logautherror" (not compatible) --- conf/logautherror.src | 6 ------ scripts/install | 7 ------- scripts/upgrade | 8 ++++++++ 3 files changed, 8 insertions(+), 13 deletions(-) delete mode 100644 conf/logautherror.src diff --git a/conf/logautherror.src b/conf/logautherror.src deleted file mode 100644 index f68bd07..0000000 --- a/conf/logautherror.src +++ /dev/null @@ -1,6 +0,0 @@ -SOURCE_URL=https://github.com/mallchin/dokuwiki_plugin_logautherror/archive/master.zip -SOURCE_SUM=bc51d4da781d0aabab8e086e51f3cb77ac983eb4366f4c8f5247bb863d4a3bb2 -SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=zip -SOURCE_IN_SUBDIR=true -SOURCE_FILENAME= diff --git a/scripts/install b/scripts/install index 0f75316..c4bd0ff 100755 --- a/scripts/install +++ b/scripts/install @@ -166,13 +166,6 @@ cp ../conf/plugins.local.php $final_path/conf/plugins.local.php.bak #ynh_store_file_checksum --file="$final_path/conf/local.protected.php" ### Files '$final_path/conf/local.php' and '$final_path/conf/acl.auth.php' can be modified by user, no need to store checksum as they cannot be overwritten safely by the upgrade script -#================================================= -# INSTALL LOGAUTHERROR PLUGIN FOR FAIL2BAN -#================================================= -ynh_script_progression --message="Installing logautherror plugin for Fail2Ban..." --weight=2 - -ynh_setup_source --dest_dir="$final_path/lib/plugins/logautherror" --source_id=logautherror - # #================================================= # # GENERIC FINALIZATION # #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index a5ee7cf..3c56493 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -170,6 +170,14 @@ if [ ! -f "$final_path/inc/preload.php" ]; then fi fi +# purge "LOGAUTHERROR PLUGIN" as not compatible and not maintained anymore +# See https://www.dokuwiki.org/plugin:logautherror +if [ -d "$final_path/lib/plugins/logautherror" ]; then + ynh_script_progression --message="Purge "LOGAUTHERROR PLUGIN" as not maintained anymore" --weight=1 + ynh_secure_remove --file "$final_path/lib/plugins/logautherror" +fi + + #================================================= # CREATE DEDICATED USER #=================================================