diff --git a/package-lock.json b/package-lock.json index 9be8167..9b57907 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "domcloud-bridge", - "version": "0.41.0", + "version": "0.41.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "domcloud-bridge", - "version": "0.41.0", + "version": "0.41.2", "license": "MIT", "dependencies": { "axios": "^1.6.5", diff --git a/package.json b/package.json index d239c25..b85cbb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "domcloud-bridge", - "version": "0.41.0", + "version": "0.41.2", "description": "Deployment runner for DOM Cloud", "main": "app.js", "engines": { diff --git a/src/executor/runner.js b/src/executor/runner.js index 98a5a92..9133678 100644 --- a/src/executor/runner.js +++ b/src/executor/runner.js @@ -375,7 +375,7 @@ export default async function runConfig(config, domain, writer, sandbox = false) await sshExec(`mv ~/tmp/python/install/* ~/.pyenv/versions/${parg.version} || true ; rm -rf ~/tmp/python`); await sshExec(`(cd ~/.pyenv/versions/${parg.version}/bin && ln -s python3 python) || true`); await sshExec("cd ~/public_html", false); - } else { + } else if (parg.version !== "system") { await sshExec(`pyenv install ${parg.version} -s`); } await sshExec(`pyenv global ${parg.version.replace(":latest", "")} ; source ~/.bashrc`); diff --git a/src/util.js b/src/util.js index 07dac9d..4cdcc32 100644 --- a/src/util.js +++ b/src/util.js @@ -153,6 +153,8 @@ export const getPythonVersion = (/** @type {string} */ status) => { return expand(status); } switch (status) { + case 'system': + return expand(status); case 'lts': case 'security': var security = pythonVersionsList.find(x => {