Skip to content

Commit

Permalink
Merge branch 'traccar:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-wolf-gb authored Apr 23, 2024
2 parents 04dd6ca + 35ae557 commit 1a22188
Show file tree
Hide file tree
Showing 37 changed files with 829 additions and 442 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jar {
manifest {
attributes(
"Main-Class": "org.traccar.Main",
"Implementation-Version": "6.0",
"Implementation-Version": "6.1",
"Class-Path": configurations.runtimeClasspath.files.collect { "lib/$it.name" }.join(" "))
}
}
4 changes: 0 additions & 4 deletions debug.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

<entry key='config.default'>./setup/default.xml</entry>

<entry key='web.path'>./traccar-web/simple</entry>
<entry key='web.debug'>true</entry>
<entry key='web.console'>true</entry>
Expand Down
4 changes: 0 additions & 4 deletions setup/cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@ write_files:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>
<properties>
<entry key="config.default">./conf/default.xml</entry>
<entry key='database.driver'>com.mysql.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost/traccar?zeroDateTimeBehavior=round&amp;serverTimezone=UTC&amp;allowPublicKeyRetrieval=true&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
<entry key='database.user'>root</entry>
<entry key='database.password'>root</entry>
</properties>
path: /root/traccar.xml
Expand Down
302 changes: 0 additions & 302 deletions setup/default.xml

This file was deleted.

1 change: 0 additions & 1 deletion setup/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ prepare () {
cp ../schema/* out/schema
cp -r ../templates/* out/templates
cp -r ../traccar-web/build/* out/web
cp default.xml out/conf
cp traccar.xml out/conf

if [ $PLATFORM = "all" -o $PLATFORM = "windows-64" ]; then
Expand Down
2 changes: 1 addition & 1 deletion setup/traccar.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Setup]
AppName=Traccar
AppVersion=6.0
AppVersion=6.1
DefaultDirName={pf}\Traccar
OutputBaseFilename=traccar-setup
ArchitecturesInstallIn64BitMode=x64
Expand Down
16 changes: 1 addition & 15 deletions setup/traccar.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
<?xml version='1.0' encoding='UTF-8'?>

<!DOCTYPE properties SYSTEM 'http://java.sun.com/dtd/properties.dtd'>

<properties>

<entry key='config.default'>./conf/default.xml</entry>

<!--
This is the main configuration file. All your configuration parameters should be placed in this file.
Default configuration parameters are located in the "default.xml" file. You should not modify it to avoid issues
with upgrading to a new version. Parameters in the main config file override values in the default file. Do not
remove "config.default" parameter from this file unless you know what you are doing.
For list of available parameters see following page: https://www.traccar.org/configuration-file/
-->
<!-- Documentation: https://www.traccar.org/configuration-file/ -->

<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost/[DATABASE_NAME]?serverTimezone=Africa/Tunis&amp;useSSL=false&amp;allowMultiQueries=true&amp;autoReconnect=true&amp;useUnicode=yes&amp;characterEncoding=UTF-8&amp;sessionVariables=sql_mode=''</entry>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/traccar/MainModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public static OpenIdProvider provideOpenIDProvider(

@Provides
public static WebServer provideWebServer(Injector injector, Config config) {
if (config.hasKey(Keys.WEB_PORT)) {
if (config.getInteger(Keys.WEB_PORT) > 0) {
return new WebServer(injector, config);
}
return null;
Expand All @@ -201,7 +201,7 @@ public static WebServer provideWebServer(Injector injector, Config config) {
@Provides
public static Geocoder provideGeocoder(Config config, Client client, StatisticsManager statisticsManager) {
if (config.getBoolean(Keys.GEOCODER_ENABLE)) {
String type = config.getString(Keys.GEOCODER_TYPE, "google");
String type = config.getString(Keys.GEOCODER_TYPE);
String url = config.getString(Keys.GEOCODER_URL);
String key = config.getString(Keys.GEOCODER_KEY);
String language = config.getString(Keys.GEOCODER_LANGUAGE);
Expand Down
Loading

0 comments on commit 1a22188

Please sign in to comment.