After creating a bash script to pull updates, it is unable to do so, giving me the error in the title. I use the same username I enter manually (which works, just not in the script).
Here is the script I'm using:
# Pulls from remote repo and implements changes
su - rails -c "cd /var/www/myapp/code;
expect \"sername for 'https://bitbucket.org':\";
expect \"assword for 'https://Morganja95@bitbucket.org':\";
interact" # Now that the final command's ran,
# we'll auto - exit the subshell
RAILS_ENV=production bundle exec rake assets:clobber
RAILS_ENV=production bundle exec rake assets:precompile
nginx -t && sudo nginx -s reload
...steemed Steve Elliot (head of product for Jira Align). Agenda: What’s new or changed in SAFe 5.0: Introduction of OKRs Essential SAFe How to achieve true business a...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events