Skip to content

Commit 5ea281b

Browse files
committed
dietpi-software: Nextcloud: adjust config version detection
1 parent 258b693 commit 5ea281b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dietpi/dietpi-software

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4988,7 +4988,7 @@ The install script will now exit. After applying one of the the above, rerun die
49884988
G_EXEC mysql -e "update nextcloud.oc_storages set id = replace(id, 'local::${datadir_old%/}/', 'local::${datadir%/}/')"
49894989
G_CONFIG_INJECT "'datadirectory'" "'datadirectory' => '$datadir'," "$config_php" "'dbtype'"
49904990
# Patch for possible ownCloud => Nextcloud migration
4991-
if (( $(mawk -F[\'.] '/^\$OC_VersionString/{print $2}' /var/www/nextcloud/version.php) = 10 )) && grep -q "'10.13' => true," /var/www/nextcloud/version.php
4991+
if (( $(mawk -F[\'.] '/^[[:blank:]]*'\''version'\''/{print $4}' /var/www/nextcloud/config/config.php) = 10 )) && grep -q "'10.13' => true," /var/www/nextcloud/version.php
49924992
then
49934993
G_CONFIG_INJECT "'10.14'" "'10.14' => true," /var/www/nextcloud/version.php "'10.13'"
49944994
G_CONFIG_INJECT "'10.15'" "'10.15' => true," /var/www/nextcloud/version.php "'10.14'"

0 commit comments

Comments
 (0)