Removed temporary workaround as it is for a version which is a year old (#3325)

This commit is contained in:
Dr. Ulrich Thomas Gabor 2022-09-30 13:28:18 +02:00 committed by GitHub
parent 6d759ef372
commit eaf30607f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,19 +156,6 @@ task('sw-build-without-db:get-remote-config', static function () {
run('./bin/console theme:dump');
download('{{deploy_path}}/current/files/theme-config', './files/');
// Temporary workaround to remove absolute file paths in Shopware <6.4.6.0
// See:
// - https://github.com/shopware/platform/commit/01c8ff86c7d8d3bee1888a26c24c9dc9b4529cbc
// - https://issues.shopware.com/issues/NEXT-17720
// - https://github.com/deployphp/deployer/issues/2754
$deployPath = get('deploy_path');
if (substr($deployPath, -1, 1) !== '/') {
$deployPath .= '/';
}
$deployPath .= 'releases/[0-9a-zA-Z]*/';
$escapedDeployPath = str_replace('/', '\\\\/', $deployPath);
runLocally("sed -iE 's#${escapedDeployPath}##g' files/theme-config/* || true");
});
});