|
@@ -1,7 +1,9 @@
|
|
#!/bin/bash
|
|
#!/bin/bash
|
|
|
|
|
|
-# Version 1.2
|
|
|
|
|
|
+# Version 1.3
|
|
#
|
|
#
|
|
|
|
+# v1.3 CHANGES:
|
|
|
|
+# - added check for configured apoache-user and basepath
|
|
# v1.2 CHANGES:
|
|
# v1.2 CHANGES:
|
|
# - updated nextcloud release check to actually get latest version from the release-url
|
|
# - updated nextcloud release check to actually get latest version from the release-url
|
|
# v1.1 CHANGES:
|
|
# v1.1 CHANGES:
|
|
@@ -28,11 +30,18 @@ if [ $? -ne 0 ]; then
|
|
exit;
|
|
exit;
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
+# check if configured apache user exists
|
|
|
|
+if ! id -u "$APACHEUSER" >/dev/null 2>&1; then
|
|
|
|
+ echo "2 \"NextCloud\" - NextCloud localcheck webserver user does not exist."
|
|
|
|
+ echo "2 \"NextCloud Apps\" - NextCloud localcheck webserver user does not exist."
|
|
|
|
+ exit;
|
|
|
|
+fi
|
|
|
|
+
|
|
# check if configured basepath exists
|
|
# check if configured basepath exists
|
|
if [ ! -d "$BASEPATH" ]; then
|
|
if [ ! -d "$BASEPATH" ]; then
|
|
- echo "2 \"NextCloud\" - NextCloud localcheck could not find configured basepath"
|
|
|
|
- echo "2 \"NextCloud Apps\" - NextCloud localcheck could not find configured basepath"
|
|
|
|
- exit;
|
|
|
|
|
|
+ echo "2 \"NextCloud\" - NextCloud localcheck could not find configured basepath"
|
|
|
|
+ echo "2 \"NextCloud Apps\" - NextCloud localcheck could not find configured basepath"
|
|
|
|
+ exit;
|
|
fi
|
|
fi
|
|
# Get current installed Nextcloud version-information
|
|
# Get current installed Nextcloud version-information
|
|
# in v29.x.x version gives more detail, which is not given by the check on installed version, so switched to versionstring instead.
|
|
# in v29.x.x version gives more detail, which is not given by the check on installed version, so switched to versionstring instead.
|