Skip to content

Commit 42eb263

Browse files
authored
recognize are now compatible with suspicious login
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
1 parent b98a75b commit 42eb263

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

apps/recognize.sh

-20
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,6 @@ fi
2727
# Compatible with NC26 and above
2828
lowest_compatible_nc 26
2929

30-
# Check if suspicious_login are installed
31-
# https://github.com/nextcloud/recognize/issues/676
32-
if is_app_enabled suspicious_login
33-
then
34-
msg_box "Since you have the app Suspicious Login Detection installed, you can't install Recognize. The reason is that it will cause issues with cron.php.\nIf you choose 'No' the installer will exit"
35-
if yesno_box_no "Do you want to disable Suspicious Login to be able to install Recognize?"
36-
then
37-
nextcloud_occ app:disable suspicious_login
38-
if ! [ -f /etc/fail2ban/filter.d/nextcloud.conf ] || ! is_this_installed fail2ban
39-
then
40-
if yesno_box_yes "Do you want to install Fail2ban (IP blocking in Linux) instead?"
41-
then
42-
run_script APP fail2ban
43-
fi
44-
fi
45-
else
46-
exit
47-
fi
48-
fi
49-
5030
# Check if face-recognition is installed and ask to remove it
5131
if is_app_installed facerecognition
5232
then

0 commit comments

Comments
 (0)