Closed rimas-kudelis closed 8 years ago
If we ship them with these lines uncommented, I guess I could improve them to use a randomized password for the database user as well, and output that password along with siteadmin's.
Meh, this seems more difficult than I expected, not sure if possible. I'm not doing this.
Let's continue discussion on #187 instead.
This also makes PostgreSQL setup generate random password for siteadmin if pgcrypto extension is enabled (or can be enabled).
This is an alternative to #187, this time with the random password possibility. Note that since pgcrypto is not guaranteed to be enabled, and the script has database and user creation commented out, it's possible that we won't be able to encrypt the password. In that case, our old default 'CHANGE' will be used.
I'm still unsure if it's better to ship the scripts with DB and user creation commented out or not. @Udera, what do you think? If we ship them with these lines uncommented, I guess I could improve them to use a randomized password for the database user as well, and output that password along with siteadmin's.