1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-03 00:07:05 +00:00

update nextcloud to 25

This commit is contained in:
KiekerJan 2023-03-03 13:26:44 +01:00
parent 1e6a25f900
commit b083979a8a

View File

@ -21,8 +21,8 @@ echo "Installing Nextcloud (contacts/calendar)..."
# we automatically install intermediate versions as needed. # we automatically install intermediate versions as needed.
# * The hash is the SHA1 hash of the ZIP package, which you can find by just running this script and # * The hash is the SHA1 hash of the ZIP package, which you can find by just running this script and
# copying it from the error message when it doesn't match what is below. # copying it from the error message when it doesn't match what is below.
nextcloud_ver=24.0.9 nextcloud_ver=25.0.3
nextcloud_hash=e7e7e580f95772c4e390e3b656129282b3967a16 nextcloud_hash=e31ad369098ef113aa687e05ec1556f06a7c6692
# Nextcloud apps # Nextcloud apps
# -------------- # --------------
@ -33,10 +33,10 @@ nextcloud_hash=e7e7e580f95772c4e390e3b656129282b3967a16
# https://github.com/nextcloud/user_external/blob/master/appinfo/info.xml # https://github.com/nextcloud/user_external/blob/master/appinfo/info.xml
# * The hash is the SHA1 hash of the ZIP package, which you can find by just running this script and # * The hash is the SHA1 hash of the ZIP package, which you can find by just running this script and
# copying it from the error message when it doesn't match what is below. # copying it from the error message when it doesn't match what is below.
contacts_ver=4.2.2 contacts_ver=5.1.0
contacts_hash=ca13d608ed8955aa374cb4f31b6026b57ef88887 contacts_hash=0b1a34df31235529eedf62192aab3d759420d797
calendar_ver=3.5.5 calendar_ver=4.2.3
calendar_hash=8505abcf7b3ab2f32d7ca1593b545e577cbeedb4 calendar_hash=8918e0b6e385c59558e9bd440e91151efb9c3bcc
user_external_ver=3.1.0 user_external_ver=3.1.0
user_external_hash=399fe1150b28a69aaf5bfcad3227e85706604a44 user_external_hash=399fe1150b28a69aaf5bfcad3227e85706604a44
@ -154,16 +154,18 @@ InstallNextcloud() {
CONFIG_TEMP=$(/bin/mktemp) CONFIG_TEMP=$(/bin/mktemp)
if [ -f "$STORAGE_ROOT/owncloud/config.php" ]; then if [ -f "$STORAGE_ROOT/owncloud/config.php" ]; then
CURRENT_NEXTCLOUD_VER=$(php -r "include(\"$STORAGE_ROOT/owncloud/config.php\"); echo(\$CONFIG['version']);") CURRENT_NEXTCLOUD_VER=$(php -r "include(\"$STORAGE_ROOT/owncloud/config.php\"); echo(\$CONFIG['version']);")
# Unlock configuration directory for upgrades
# Unlock configuration directory for upgrades
php <<EOF > $CONFIG_TEMP && mv $CONFIG_TEMP $STORAGE_ROOT/owncloud/config.php; php <<EOF > $CONFIG_TEMP && mv $CONFIG_TEMP $STORAGE_ROOT/owncloud/config.php;
<?php <?php
include("$STORAGE_ROOT/owncloud/config.php"); include("$STORAGE_ROOT/owncloud/config.php");
\$CONFIG['config_is_read_only'] = false;
echo "<?php\n\\\$CONFIG = "; \$CONFIG['config_is_read_only'] = false;
var_export(\$CONFIG); echo "<?php\n\\\$CONFIG = ";
echo ";"; var_export(\$CONFIG);
?> echo ";";
EOF ?>
EOF
else else
CURRENT_NEXTCLOUD_VER="" CURRENT_NEXTCLOUD_VER=""
fi fi