Running bundle command in Linux machine using shell script
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.
./use_redmine.sh //Stopping at this stage
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 email@example.com password=xxx apop=0 unknown_user=create project=xx-xxx allow_override=project --trace"
-bash-4.2# cd 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.
cmd.JPG (64.9 KB)