Make ./gendb.sh idempotent #23

Closed
opened 2017-09-23 00:46:14 +02:00 by lyoshenka · 0 comments
lyoshenka commented 2017-09-23 00:46:14 +02:00 (Migrated from github.com)

Right now it errors if you run it a second time, saying "index exists". It should detect that it already created the db, and not try to do it a second time.

Ideally, this should be compatible with ansible somehow. Ansible needs to know when something changed vs nothing changed. For example, the script could exit with code 1 if nothing changed. Or maybe print a message to that effect.

Right now it errors if you run it a second time, saying "index exists". It should detect that it already created the db, and not try to do it a second time. Ideally, this should be compatible with ansible somehow. Ansible needs to know when something changed vs nothing changed. For example, the script could exit with code 1 if nothing changed. Or maybe print a message to that effect.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lighthouse.js#23
No description provided.