Running bundle command in Linux machine using shell script
Added by mahesh m about 6 years ago
Hi,
I am trying run bundle command in Linux machine using a shell script which later fetch mails from server to create tickets in the tool.
But in manual execution of that commands will work and fetch the mails but not via script.The execution stops at line 4 and not proceeding further to run redmineini.sh file.
#!/bin/bash
redmine="/redmine"
cd $redmine
./use_redmine.sh //Stopping at this stage
/redmine/apps/redmine/scripts/redmineini.sh
htdocs="/redmine/apps/redmine/htdocs"
cd $htdocs
bundle="bundle exec rake redmine:email:receive_pop3 RAILS_ENV="production" RAILS_ENV="production" host=pop.xxx.com port=110 url=http://localhost/redmine key=xxxx username=redmine@xxx.com password=xxx apop=0 unknown_user=create project=xx-xxx allow_override=project --trace"
$bundle
#exit
----
-bash-4.2# cd redmine
-bash-4.2# ./use_redmine
bash-4.2# cd /redmine/apps/redmine/scripts/redmineini.sh // Not executing this line
Some configuration data is already loaded.
bash-4.2# cd /redmine/apps/redmine/htdocs
bash-4.2# bundle install
Please let me know how to run the bundle using that commands.