Hi!
the postinstallation script for the x2goserver (ubuntu) has the following problem:
it checks if /var/lib/x2go/x2go_sessions exists, and if not, calls x2godbadmin --createdb. This is not good, because it sometimes breaks upgrades of the package when using a remote postgresql: The postgresdb is configured and accessible but there is no /var/lib/x2go/x2go_sessions because it isn't needed. Then when you upgrade, it calls x2godbadmin --createdb and overwrites the remote postgres-sql-db.. I think it should test if postgres is used, and if so, should never do anything on its own with the db. Users who use the postgres-db anyhow know what they are doing and could do some steps more.
Jochen
Hi Jochen,
On Do 26 Jan 2012 14:17:32 CET Jochen Schulz wrote:
Hi!
the postinstallation script for the x2goserver (ubuntu) has the following problem:
it checks if /var/lib/x2go/x2go_sessions exists, and if not, calls x2godbadmin --createdb. This is not good, because it sometimes breaks upgrades of the package when using a remote postgresql: The postgresdb is configured and accessible but there is no /var/lib/x2go/x2go_sessions because it isn't needed. Then when you upgrade, it calls x2godbadmin --createdb and overwrites the remote postgres-sql-db.. I think it should test if postgres is used, and if so, should never do anything on its own with the db. Users who use the postgres-db anyhow know what they are doing and could do some steps more.
I have created a patch from your idea and committed it to X2Go Git: http://code.x2go.org/gitweb?p=x2goserver.git;a=commitdiff;h=0c93005f85ed13e7...
Test Packages (nightly builds for Debian) are currently building. They
should be available in 20-30 minutes, please test if you may!?!
Greets, Mike
--
DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419
GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de
freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...