Skip to content

Commit

Permalink
fix #2619 (#2620)
Browse files Browse the repository at this point in the history
* part fix #2619

make sure the bin is exceutable

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>

* one solution for all files

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>

* Update nextcloud_update.sh

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>

* Update nextcloud_update.sh

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>

* tested and works

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>

---------

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
enoch85 and github-actions[bot] committed Apr 15, 2024
1 parent e7d5e7f commit 28b4b20
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 28b4b20

Please sign in to comment.