some minor fixes

This commit is contained in:
Daniel Hansson 2020-02-18 22:02:18 +01:00 committed by GitHub
parent cdc6dfba6a
commit 696107e45c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,8 @@ debug_mode
# Check if root
root_check
print_text_in_color "$ICyan" "Running the OnlyOffice install script..."
# Nextcloud 18 is required.
lowest_compatible_nc 18
@ -36,8 +38,7 @@ To run this script again, just exectue 'sudo bash $SCRIPTS/apps.sh' and choose O
exit
fi
# Get the latest packages
apt update -q4 & spinner_loading
# Check if OnlyOffice is installed using the old method
if does_this_docker_exist 'onlyoffice/documentserver'
@ -45,7 +46,7 @@ then
# Greater than 18.0.0 is 18.0.1 which is required
if version_gt "$CURRENTVERSION" "18.0.0"
then
print_text_in_color "$ICyan" "Your server is compatible with the new way of installing OnlyOffice. We will now remove the old docker and install the app from Nextcloud instead."
msg_box "Your server is compatible with the new way of installing OnlyOffice. We will now remove the old docker and install the app from Nextcloud instead."
# Remove docker image
docker_prune_this 'onlyoffice/documentserver'
# Revoke LE