1 |
diff -Nur --no-dereference smeserver-roundcube-1.2.old/root/usr/bin/rcplugin_update.sh smeserver-roundcube-1.2/root/usr/bin/rcplugin_update.sh |
2 |
--- smeserver-roundcube-1.2.old/root/usr/bin/rcplugin_update.sh 2024-03-25 11:07:28.309000000 -0400 |
3 |
+++ smeserver-roundcube-1.2/root/usr/bin/rcplugin_update.sh 2024-03-25 11:10:33.183000000 -0400 |
4 |
@@ -1,20 +1,14 @@ |
5 |
#!/bin/bash |
6 |
-/sbin/e-smith/db configuration setprop php81 AllowUrlFopen On |
7 |
-/sbin/e-smith/expand-template /etc/opt/remi/php81/php.ini |
8 |
-/usr/bin/systemctl restart php81-php-fpm >/dev/null 2>&1 |
9 |
-#/etc/init.d/httpd-e-smith restart >/dev/null 2>&1 |
10 |
pathroundcube=$(pwd) |
11 |
- |
12 |
cd /usr/share/roundcubemail |
13 |
-COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 /usr/local/bin/composer require johndoh/contextmenu --with-dependencies |
14 |
-COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 /usr/local/bin/composer require johndoh/globaladdressbook ~2.1 --with-dependencies |
15 |
-COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 /usr/local/bin/composer require roundcube/larry ~1.6.0 --with-dependencies |
16 |
-COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 /usr/local/bin/composer require bennet0496/nextcloud_attachments --with-dependencies |
17 |
- |
18 |
-COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 /usr/local/bin/composer self-update |
19 |
-COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 /usr/local/bin/composer update --with-dependencies |
20 |
-/sbin/e-smith/db configuration setprop php81 AllowUrlFopen off |
21 |
-/sbin/e-smith/expand-template /etc/opt/remi/php81/php.ini |
22 |
-/usr/bin/systemctl restart php81-php-fpm >/dev/null 2>&1 |
23 |
+# composer seems to have issues to detect roundcubemail 1.6.6 version... so: |
24 |
+# we could also get it from index.php header. |
25 |
+export COMPOSER_ROOT_VERSION=`rpm -q roundcubemail --queryformat "%{VERSION}"` |
26 |
+COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 -d allow_url_fopen=1 /usr/local/bin/composer require johndoh/contextmenu --with-all-dependencies --no-interaction |
27 |
+COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 -d allow_url_fopen=1 /usr/local/bin/composer require johndoh/globaladdressbook ~2.1 --with-all-dependencies --no-interaction |
28 |
+COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 -d allow_url_fopen=1 /usr/local/bin/composer require roundcube/larry ~1.6.0 --with-all-dependencies --no-interaction |
29 |
+COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 -d allow_url_fopen=1 /usr/local/bin/composer require bennet0496/nextcloud_attachments --with-all-dependencies --no-interaction |
30 |
+COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 -d allow_url_fopen=1 /usr/local/bin/composer self-update --no-interaction |
31 |
+COMPOSER_ALLOW_SUPERUSER=1 /usr/bin/php81 -d allow_url_fopen=1 /usr/local/bin/composer update --with-all-dependencies --no-interaction |
32 |
cd $pathroundcube |
33 |
|