Skip to content

Commit

Permalink
Remove moveConfig from php builders.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed Jan 16, 2025
1 parent 40bd1f0 commit ed38b84
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions builders/pantheon-php.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,6 @@ const path = require('path');
const LandoPhp = require('@lando/php/builders/php.js');
const utils = require('./../lib/utils.js');

const loadScripts = options => {
const lando = _.get(options, '_app._lando');
const landoPhpScriptsPath = path.join(path.dirname(require.resolve('@lando/php/package.json')), 'scripts');

// Move the script to the confDir and make executable.
if (fs.existsSync(landoPhpScriptsPath)) {
const confDir = path.join(lando.config.userConfRoot, 'scripts');
const dest = lando.utils.moveConfig(landoPhpScriptsPath, confDir);
lando.utils.makeExecutable(fs.readdirSync(dest), dest);
lando.log.debug('automoved scripts from %s to %s and set to mode 755', landoPhpScriptsPath, confDir);
}
};

// Builder
module.exports = {
name: 'pantheon-php',
Expand Down Expand Up @@ -49,7 +36,6 @@ module.exports = {
options.environment = utils.getPantheonEnvironment(options);
options.confSrc = path.resolve(__dirname, '..', 'config');
options.nginxServiceType = 'pantheon-nginx';
loadScripts(options);

super(id, options, factory);
}
Expand Down

0 comments on commit ed38b84

Please sign in to comment.