From: charleswrayjr Date: Sat, 6 Sep 2025 00:46:33 +0000 (-0500) Subject: Testing cloning path. X-Git-Url: https://git.phasecustomsoft.com/?a=commitdiff_plain;h=2792db7d924cd5b7886da3c3419983bd4e957900;p=phs-api.git Testing cloning path. --- diff --git a/src/controllers/git.controller.js b/src/controllers/git.controller.js index 45f371e..c9ed395 100755 --- a/src/controllers/git.controller.js +++ b/src/controllers/git.controller.js @@ -103,7 +103,7 @@ module.exports = { const conn = new Client(); conn.on( 'ready', () => { console.log('ready'); - const commands = [`mkdir -p ${ deployPath }`, `chown ${ user }:${ user } ${ deployPath }`, `su - ${ user } -c "cd ${ deployPath } && git clone ${ user }@localhost:/opt/git/${ repoName }.git ."`,]; + const commands = [`mkdir -p ${ deployPath }`, `chown ${ user }:${ user } ${ deployPath }`, `cd ${ deployPath } && git clone ${ user }@localhost:/opt/git/${ repoName }.git .`,]; console.log(commands); console.log([...commands].join( ' && ' )); conn.exec( commands.join( ' && ' ), ( err, stream ) => {