Skip to content

Commit 2e02b21

Browse files
authored
Fix PECL XML
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 8bf2fa4 commit 2e02b21

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

nextcloud_update.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,14 @@ fi
383383
# Fix PHP error message
384384
mkdir -p /tmp/pear/cache
385385

386+
# Just in case PECLs XML are bad
387+
if ! pecl channel-update pecl.php.net
388+
then
389+
curl_to_dir http://pecl.php.net channel.xml /tmp
390+
pear channel-update /tmp/channel.xml
391+
rm -f /tmp/channel.xml
392+
fi
393+
386394
# Update Redis PHP extension (18.04 --> 20.04 since 16.04 already is deprecated in the top of this script)
387395
print_text_in_color "$ICyan" "Trying to upgrade the Redis PECL extension..."
388396

@@ -396,7 +404,7 @@ then
396404
then
397405
install_if_not php"$PHPVER"-dev
398406
fi
399-
pecl channel-update pecl.php.net
407+
400408
yes no | pecl upgrade redis
401409
systemctl restart redis-server.service
402410
fi

0 commit comments

Comments
 (0)