[ gpsdrive ] update-mapnik-from-planet.sh
Joerg Ostertag (gpsdrive Munich/Germany)
gpsdrive at ostertag.name
Sun Oct 14 03:05:22 AKDT 2007
On Sonntag 14 Oktober 2007, Hamish wrote:
> > > haylocki:
> > > > I realised maybe I shouldn't use my username, when I saw the script
> > > > defaults to the name "osm"
> > > > Maybe the --user-name option should be removed, then people like me
> > > > won't make stoopid miskakes :-)
>
> Hamish:
> > > perhaps add something like
> > >
> > > if [ "$user_name" = "$USER" ] ; then
> > > echo "Don't use your own login account for this." 1>&2
> > > exit 1
> > > fi
>
> Joerg:
> > I added a comment to the help. Do you think that is enough or do you
> > think we need this check too?
>
> We can't count on everyone to read the docs- for that matter we can count
> on many people not to read them.
OK I added the check. But I don't know if it works all the time. Since you
normally start the script as root and then $USER is "root" and not the
regular username. This People can use there own osername if they don't read.
But then, hey ....
> Other than that I don't really feel
> qualified to answer as I don't use or know mapnik, OSM, or My|PostgreSQL
> very much so am not too familiar with the needs and issues. Personally I've
> never been very comfortable with having to add the complexity of new user
> accounts and passwords for a single-user local DB,
But it's much simpler to code.
> I'd much prefer
> something light & simple like a flat ascii table or SQLite. Especially when
> you need to pass plain text passwords as command line anrguments.
You won't in pgsql. That's one of the things I like
> But I
> fully accept that if OSM is using Postgres it's a good idea if gpsdrive
> supports it as well, to minimize porting problems and duplication of
> effort, and just making it easy for everything to "just work". Just as
> long as all that complexity stays optional ;)
We 'll try to.
-
Joerg
More information about the GPSdrive
mailing list