Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #2619 #2620

Merged
merged 6 commits into from
Apr 15, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -760,14 +760,20 @@ 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
# 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)"
export "$find_executables"
enoch85 marked this conversation as resolved.
Show resolved Hide resolved
enoch85 marked this conversation as resolved.
Show resolved Hide resolved

if [ -f /tmp/minor.version ]
then
Expand Down Expand Up @@ -1173,6 +1179,13 @@ then
fi
fi

# Make all files in executable again
for executable in $find_executables
do
chmod +x $executable
enoch85 marked this conversation as resolved.
Show resolved Hide resolved
enoch85 marked this conversation as resolved.
Show resolved Hide resolved
unset "$find_executables"
done

# Start Apache2
start_if_stopped apache2

Expand Down
Loading