diff --git a/Jenkinsfile b/Jenkinsfile index 1eb3a28..866e602 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,9 +23,9 @@ pipeline { ssh -o StrictHostKeyChecking=no root@${VPS_HOST} "mkdir -p ${BOT_DIR}" scp -o StrictHostKeyChecking=no -r * root@${VPS_HOST}:${BOT_DIR}/ - # Setup and restart on VPS - ssh -o StrictHostKeyChecking=no root@${VPS_HOST} << 'ENDSSH' - cd ${BOT_DIR} + # Setup and restart on VPS (force bash) + ssh -o StrictHostKeyChecking=no root@${VPS_HOST} /bin/bash << 'ENDSSH' + cd /srv/fymious-tg-bot # Create venv if needed if [ ! -d ".venv" ]; then