diff options
author | Daniel Hansson <daniel@techandme.se> | 2018-10-15 22:51:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 22:51:15 +0300 |
commit | 1a2b7727ea6ba761b597d0ef716fc59784f24baa (patch) | |
tree | 6ac96b76c404fe581bb8d09231dfde0115aa27f7 /nextcloud_update.sh | |
parent | 6aa291c1a87c308ad9b3ed5e645434826b2f875c (diff) |
fix redis bug and install disabled apps
Diffstat (limited to 'nextcloud_update.sh')
-rw-r--r-- | nextcloud_update.sh | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/nextcloud_update.sh b/nextcloud_update.sh index f346ee0d..04a7c207 100644 --- a/nextcloud_update.sh +++ b/nextcloud_update.sh @@ -22,10 +22,6 @@ THEME_NAME="" # Must be root root_check -msg_box "There's a bug in the Redis update process, we are working on it. -Please try to upgrade again later" -exit - # Check if dpkg or apt is running is_process_running apt is_process_running dpkg @@ -55,17 +51,31 @@ then fi # Update Redis PHP extension -if type pecl > /dev/null 2>&1 +echo "Trying to upgrade the Redis PECL extenstion..." +if ! pecl list | grep redis >/dev/null 2>&1 +then + if dpkg -l | grep php7.2 > /dev/null 2>&1 + then + install_if_not php7.2-dev + else + install_if_not php7.0-dev + fi + apt purge php-redis -y + apt autoremove -y + pecl channel-update pecl.php.net + yes no | pecl install redis + service redis-server restart +elif pecl list | grep redis >/dev/null 2>&1 then - if type php7.2 > /dev/null 2>&1 + if dpkg -l | grep php7.2 > /dev/null 2>&1 then - install_if_not php7.2-dev + install_if_not php7.2-dev else - install_if_not php7.0-dev + install_if_not php7.0-dev fi -echo "Trying to upgrade the Redis Pecl extenstion..." -yes no | pecl upgrade redis -service redis-server restart + pecl channel-update pecl.php.net + yes no | pecl upgrade redis + service redis-server restart fi # Update adminer @@ -326,7 +336,7 @@ fi check_command service apache2 start # Recover apps that exists in the backed up apps folder -# run_static_script recover_apps +run_static_script recover_apps # Enable Apps if [ -d "$SNAPDIR" ] |