Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions apps/recognize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ debug_mode
# Check if root
root_check

# Encryption may not be enabled
if is_app_enabled encryption || is_app_enabled end_to_end_encryption
then
msg_box "It seems like you have encryption enabled which is unsupported by the $SCRIPT_NAME app!"
exit 1
fi

# Compatible with NC26 and above
lowest_compatible_nc 26

# Check if suspicious_login are installed
# https://github.com/nextcloud/recognize/issues/676
if is_app_enabled suspicious_login
Expand All @@ -37,6 +47,21 @@ then
fi
fi

# Check if face-recognition is installed and ask to remove it
if ! is_app_installed facerecognition
then
msg_box "It seems like Face Recognition is installed. This app doesn't work with both installed at the same time. Please uninstall Face Recognition and try again:

1. Hit OK here.
2. Choose 'Uninstall'
3. Run sudo bash $SCRIPTS/menu.sh --> Additional Apps --> Recognize
4. Install

We will run the uninstaller for you now, then exit."
wget https://raw.githubusercontent.com/nextcloud/vm/master/old/face-recognition.sh && bash face-recognition.sh && rm -f face-recognition.sh
exit
fi

# Check if recognize is already installed
if ! is_app_installed recognize
then
Expand Down