Skip to content
Merged
Changes from 3 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"

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"
unset "$find_executables"
done

# Start Apache2
start_if_stopped apache2

Expand Down