mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
trim the function a bit
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
c88eafd066
commit
01195b5205
5
lib.sh
5
lib.sh
@ -1444,8 +1444,6 @@ lowest_compatible_nc() {
|
||||
# .ocdata needs to exist to be able to check version, occ relies on everytihgn working
|
||||
until [ -f "$NCDATA"/.ocdata ]
|
||||
do
|
||||
if ! [ -f "$NCDATA"/.ocdata ]
|
||||
then
|
||||
# SUPPORT LEGACY: If it's not in the standard path, check for existing datadir in config.php
|
||||
if [ -f "$NCPATH"/config/config.php ]
|
||||
then
|
||||
@ -1456,7 +1454,7 @@ do
|
||||
msg_box "You are not using the default path for your datadir, and we can't find it in your config.php, so you can't run this script.
|
||||
If you think this is a bug, please report it to $ISSUES"
|
||||
else
|
||||
# Check again when NCDATA is set and not -z
|
||||
# Check again an break if found
|
||||
if [ -f "$NCDATA"/.ocdata ]
|
||||
then
|
||||
break
|
||||
@ -1468,7 +1466,6 @@ We can't continue without it, so please shutdown the machine and double check th
|
||||
|
||||
If you need support, feel free to contact us here: https://www.hanssonit.se/#contact"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
# Check version
|
||||
|
||||
Loading…
Reference in New Issue
Block a user