Skip to content

Commit

Permalink
Merge branch 'master' into 24.04-LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 committed Apr 15, 2024
2 parents 33ed42a + 28b4b20 commit fccd461
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions nextcloud_update.sh
Expand Up @@ -725,6 +725,10 @@ fi
print_text_in_color "$IGreen" "Disabling maintenance:mode..."
sudo -u www-data php "$NCPATH"/occ maintenance:mode --off

# Make all previous files executable
print_text_in_color "$ICyan" "Finding all executable files in $NC_APPS_PATH"
find_executables="$(find $NC_APPS_PATH -type f -executable)"

# Update all Nextcloud apps
if [ "${CURRENTVERSION%%.*}" -ge "15" ]
then
Expand Down Expand Up @@ -760,15 +764,16 @@ else
print_text_in_color "$IGreen" "Your apps are already up to date!"
fi

# Nextcloud 13 is required.
lowest_compatible_nc 13

# Restart notify push if existing
if [ -f "$NOTIFY_PUSH_SERVICE_PATH" ]
then
systemctl restart notify_push
chmod +x "$NC_APPS_PATH"/notify_push/bin/x86_64/notify_push
systemctl restart notify_push.service
fi

# Nextcloud 13 is required.
lowest_compatible_nc 13

if [ -f /tmp/minor.version ]
then
NCBAD=$(cat /tmp/minor.version)
Expand Down Expand Up @@ -1247,6 +1252,12 @@ then
mkdir -p "$VMLOGS"
fi

# Make all files in executable again
for executable in $find_executables
do
chmod +x "$executable"
done

CURRENTVERSION_after=$(nextcloud_occ status | grep "versionstring" | awk '{print $3}')
if [[ "$NCVERSION" == "$CURRENTVERSION_after" ]] || [ -n "$PRERELEASE_VERSION" ]
then
Expand Down

0 comments on commit fccd461

Please sign in to comment.