Skip to content

Commit 28b4b20

Browse files
fix #2619 (#2620)
* part fix #2619 make sure the bin is exceutable Signed-off-by: Daniel Hansson <[email protected]> * one solution for all files Signed-off-by: Daniel Hansson <[email protected]> * Update nextcloud_update.sh Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Daniel Hansson <[email protected]> * Update nextcloud_update.sh Signed-off-by: Daniel Hansson <[email protected]> * tested and works Signed-off-by: Daniel Hansson <[email protected]> --------- Signed-off-by: Daniel Hansson <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e7d5e7f commit 28b4b20

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

nextcloud_update.sh

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,6 +725,10 @@ fi
725725
print_text_in_color "$IGreen" "Disabling maintenance:mode..."
726726
sudo -u www-data php "$NCPATH"/occ maintenance:mode --off
727727

728+
# Make all previous files executable
729+
print_text_in_color "$ICyan" "Finding all executable files in $NC_APPS_PATH"
730+
find_executables="$(find $NC_APPS_PATH -type f -executable)"
731+
728732
# Update all Nextcloud apps
729733
if [ "${CURRENTVERSION%%.*}" -ge "15" ]
730734
then
@@ -760,15 +764,16 @@ else
760764
print_text_in_color "$IGreen" "Your apps are already up to date!"
761765
fi
762766

767+
# Nextcloud 13 is required.
768+
lowest_compatible_nc 13
769+
763770
# Restart notify push if existing
764771
if [ -f "$NOTIFY_PUSH_SERVICE_PATH" ]
765772
then
766-
systemctl restart notify_push
773+
chmod +x "$NC_APPS_PATH"/notify_push/bin/x86_64/notify_push
774+
systemctl restart notify_push.service
767775
fi
768776

769-
# Nextcloud 13 is required.
770-
lowest_compatible_nc 13
771-
772777
if [ -f /tmp/minor.version ]
773778
then
774779
NCBAD=$(cat /tmp/minor.version)
@@ -1247,6 +1252,12 @@ then
12471252
mkdir -p "$VMLOGS"
12481253
fi
12491254

1255+
# Make all files in executable again
1256+
for executable in $find_executables
1257+
do
1258+
chmod +x "$executable"
1259+
done
1260+
12501261
CURRENTVERSION_after=$(nextcloud_occ status | grep "versionstring" | awk '{print $3}')
12511262
if [[ "$NCVERSION" == "$CURRENTVERSION_after" ]] || [ -n "$PRERELEASE_VERSION" ]
12521263
then

0 commit comments

Comments
 (0)