Replace more gnued/linuxism script
1.1. getopt
Using long args with getopt is a linuxism. So I include a "compat mode" for it. More details on stackoverflow
1.2. sed
sed r is the GNU sed version. Use coreutils with gsed for non linux. Or easiest, use cat
1.3. sleep
Use only the number of seconds without the suffix.
upgrade_db.sh
2.1. SCRIPTDIR
Add the location of the script. Since you can run it everywhere
2.2. DB info from pg_service.conf
TODO is done. Get the host and the port for dbcomp and dbtest.
Maybe add an option for the location of .pg_service.conf?
Wouldn't it be better if this part were done by PUM?
Replace more gnued/linuxism script 1.1. getopt Using long args with getopt is a linuxism. So I include a "compat mode" for it. More details on stackoverflow 1.2. sed
sed r
is the GNU sed version. Use coreutils with gsed for non linux. Or easiest, usecat
1.3. sleep Use only the number of seconds without the suffix.upgrade_db.sh 2.1. SCRIPTDIR Add the location of the script. Since you can run it everywhere 2.2. DB info from pg_service.conf TODO is done. Get the host and the port for dbcomp and dbtest. Maybe add an option for the location of .pg_service.conf? Wouldn't it be better if this part were done by PUM?