Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to prevent the repeated ask for password during long running commands? #201

Open
PeterCodar opened this issue Jun 9, 2021 · 1 comment

Comments

@PeterCodar
Copy link

I would like to run this 3 steps "unattended":

sudo docker-compose run --rm musicbrainz fetch-dump.sh search && admin/delete-search-indexes all && sudo docker-compose run --rm search load-search-indexes.sh --force

Unfortunately, the first step (downloading the dumps) needs over 2 hours and the following command always ask for the same user password again.

How can I execute the above 3 commands one after the other and enter the password only once (at the beginning)?

@jflude
Copy link

jflude commented Jun 25, 2021

sudo $SHELL -c 'docker-compose run --rm musicbrainz fetch-dump.sh search && admin/delete-search-indexes all && docker-compose run --rm search load-search-indexes.sh --force'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants