I have the following script, deploy.sh
, on Ubuntu 18.04.3 LTS
#!/bin/sh
sudo -s
cd /home/engine.traderbot
git reset --hard
git pull origin master
cd /home/engine.traderbot/linuxscripts
chmod +x *
cd /home/engine.traderbot/config
rm configuration.tbc
cp ovhserver.tbc configuration.tbc
in file
-rwxrwxrwx 1 root root 371 Oct 2 15:59 deploy.sh
When I execute the script nothing is happening. I tried several things, read several Q&As and blogs but after a few hours I'm getting a little bit crazy. Things I tried include:
sudo ./deploy.sh
dos2unix deploy.sh
su root
, followed by./deploy.sh
sh deploy.sh
I should get the question for username/password from the git pull but nothing is happening. Also no error as well.
Any suggestions?
sh -x deploy.sh
? – user3840170 Oct 02 '19 at 16:14