Page MenuHomeSoftware Heritage

sql/bin/db-init: simpler usage with sensible defaults
ClosedPublic

Authored by seirl on Sep 24 2018, 5:57 PM.

Details

Reviewers
zack
Group Reviewers
Reviewers

Diff Detail

Repository
rDSTO Storage manager
Branch
easier-db-init
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1442
Build 1786: arc lint + arc unit

Event Timeline

fix usage docs to reflect default parameters

zack requested changes to this revision.Sep 25 2018, 9:41 AM
zack added a subscriber: zack.

Thanks, I liked the idea. I've only reported minor things here and there.

sql/bin/db-init
20

what's the point of this cd? no command in the script invoke local commands anyway

28

this should be "DB_NAME [DB_USER [DB_PORT]]"

45

as we're going password-less, we shouldn't force a password for the new user with --pwprompt, it will be confusing

This revision now requires changes to proceed.Sep 25 2018, 9:41 AM
sql/bin/db-init
20

oh, ignore this comment, I see in D441 why you want this

sql/bin/db-init
45

If this script is only used for installing a dev environment, I can just remove this completely.

seirl marked 2 inline comments as done.

Fix POSIX usage arg documentation.

If you approve this, I'll just merge it and submit a second diff with all the useless parts removed.

This revision is now accepted and ready to land.Sep 25 2018, 12:51 PM