@@ -22,10 +22,6 @@ THEME_NAME=""
22
22
# Must be root
23
23
root_check
24
24
25
- msg_box " There's a bug in the Redis update process, we are working on it.
26
- Please try to upgrade again later"
27
- exit
28
-
29
25
# Check if dpkg or apt is running
30
26
is_process_running apt
31
27
is_process_running dpkg
55
51
fi
56
52
57
53
# Update Redis PHP extension
58
- if type pecl > /dev/null 2>&1
54
+ echo " Trying to upgrade the Redis PECL extenstion..."
55
+ if ! pecl list | grep redis > /dev/null 2>&1
56
+ then
57
+ if dpkg -l | grep php7.2 > /dev/null 2>&1
58
+ then
59
+ install_if_not php7.2-dev
60
+ else
61
+ install_if_not php7.0-dev
62
+ fi
63
+ apt purge php-redis -y
64
+ apt autoremove -y
65
+ pecl channel-update pecl.php.net
66
+ yes no | pecl install redis
67
+ service redis-server restart
68
+ elif pecl list | grep redis > /dev/null 2>&1
59
69
then
60
- if type php7.2 > /dev/null 2>&1
70
+ if dpkg -l | grep php7.2 > /dev/null 2>&1
61
71
then
62
- install_if_not php7.2-dev
72
+ install_if_not php7.2-dev
63
73
else
64
- install_if_not php7.0-dev
74
+ install_if_not php7.0-dev
65
75
fi
66
- echo " Trying to upgrade the Redis Pecl extenstion... "
67
- yes no | pecl upgrade redis
68
- service redis-server restart
76
+ pecl channel-update pecl.php.net
77
+ yes no | pecl upgrade redis
78
+ service redis-server restart
69
79
fi
70
80
71
81
# Update adminer
326
336
check_command service apache2 start
327
337
328
338
# Recover apps that exists in the backed up apps folder
329
- # run_static_script recover_apps
339
+ run_static_script recover_apps
330
340
331
341
# Enable Apps
332
342
if [ -d " $SNAPDIR " ]
0 commit comments