|
@@ -22,7 +22,6 @@ BASEPATH="/var/www/html"
|
|
APACHEUSER="apache"
|
|
APACHEUSER="apache"
|
|
|
|
|
|
# check if jq package is present on the system
|
|
# check if jq package is present on the system
|
|
-
|
|
|
|
/usr/bin/which jq >/dev/null 2>&1
|
|
/usr/bin/which jq >/dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
if [ $? -ne 0 ]; then
|
|
echo "2 \"NextCloud\" - NextCloud localcheck requires jq package to be installed"
|
|
echo "2 \"NextCloud\" - NextCloud localcheck requires jq package to be installed"
|
|
@@ -32,17 +31,18 @@ fi
|
|
|
|
|
|
# check if configured apache user exists
|
|
# check if configured apache user exists
|
|
if ! id -u "$APACHEUSER" >/dev/null 2>&1; then
|
|
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."
|
|
|
|
|
|
+ echo "2 \"NextCloud\" - NextCloud localcheck webserver user does not exist, check configuration!"
|
|
|
|
+ echo "2 \"NextCloud Apps\" - NextCloud localcheck webserver user does not exist, check configuration!"
|
|
exit;
|
|
exit;
|
|
fi
|
|
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"
|
|
|
|
|
|
+ echo "2 \"NextCloud\" - NextCloud localcheck could not find configured basepath, check configuration!"
|
|
|
|
+ echo "2 \"NextCloud Apps\" - NextCloud localcheck could not find configured basepath, check configuration!"
|
|
exit;
|
|
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.
|
|
|
|
|