Hi,
Took my a while to have some time to try this myself
and found that by putting a setenv.sh file in the Tomcat bin folder does what you need (This is for linux, on Windows you would have a setenv.bat and a SET CATALINA_OPTS= line)
- Code: Select all
#!/bin/sh
echo $CATALINA_OPTS
export CATALINA_OPTS="$CATALINA_OPTS -Dsubsonic.db=jdbc:mysql://localhost:3306/subsonic\?user=subsonicDbUser\&password=VeryStrangePasswordNobodyWillEverFindOut\&characterEncoding=UTF-8"
echo $CATALINA_OPTS
the echos are just for testing, not really needed.
You have to do additionally the following steps:
- Code: Select all
chmod +x setenv.sh
chown UserUsedForTomcat setenv.sh
and then restart the Tomcat server.
If you use something different than Tomcat, pls. post YOur results, too.