Closed woodRock closed 3 years ago
There are no unintended consequences for a global substitution of localhost
with wellmapsrvdev02
. We can verify this with the following command. This is run in the backups folder after we have performed the replacement using sed.
cat *.bak | grep "localhost" | grep -vi "connection"
The connection string for each of the MapFiles can be changed using sed
. We can provide a backup suffix and directory to the -i
flag, to create backups for the files.
sed -i'backups/*.bak' 's/localhost/wellmapsrvdev02/g/' *.map
Goal
Replace all the occurences of the
localhost
in Postgres connection strings, withwellmapsrvdev02
.Tasklist
localhost
withwellmapsrvdev02
Success Criteria
The host specified in the connection string for each MapFile is
wellmapsrvdev02
.