1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/traccar_ynh.git synced 2024-09-03 20:35:56 +02:00

Merge pull request #3 from YunoHost-Apps/testing

Testing
This commit is contained in:
eric_G 2023-11-19 15:41:31 +01:00 committed by GitHub
commit 6a7f9e2c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 49 additions and 42 deletions

View file

@ -16,17 +16,17 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
## Overview
Traccar is an open source GPS tracking system. This repository contains Java-based back-end service. It supports more than 200 GPS protocols and more than 2000 models of GPS tracking devices.
Traccar is an open source GPS tracking system. It supports more than 200 GPS protocols and more than 2000 models of GPS tracking devices.
### Features
Real-time GPS tracking
Driver behaviour monitoring
Detailed and summary reports
Geofencing functionality
Alarms and notifications
Account and device management
Email and SMS support
- Real-time GPS tracking
- Driver behaviour monitoring
- Detailed and summary reports
- Geofencing functionality
- Alarms and notifications
- Account and device management
- Email and SMS support
**Shipped version:** 5.9~ynh1

View file

@ -16,17 +16,18 @@ Si vous navez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
## Vue densemble
Traccar est un système de suivi GPS open source. Ce référentiel contient un service back-end basé sur Java. Il prend en charge plus de 200 protocoles GPS et plus de 2 000 modèles de dispositifs de suivi GPS.
Traccar est un système de suivi GPS open source. Il prend en charge plus de 200 protocoles GPS et plus de 2 000 modèles de dispositifs de suivi GPS.
### Caractéristiques
Suivi GPS en temps réel
Surveillance du comportement des conducteurs
Rapports détaillés et synthétiques
Fonctionnalité de géolocalisation
Alarmes et notifications
Gestion des comptes et des appareils
Assistance par e-mail et SMS
- Suivi GPS en temps réel
- Surveillance du comportement des conducteurs
- Rapports détaillés et synthétiques
- Fonctionnalité de géolocalisation
- Alarmes et notifications
- Gestion des comptes et des appareils
- Assistance par e-mail et SMS
**Version incluse :** 5.9~ynh1

View file

@ -18,8 +18,8 @@
-->
<entry key='database.driver'>com.mysql.cj.jdbc.Driver</entry>
<entry key='database.url'>jdbc:mysql://localhost/__DB_NAME__?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.driver'>org.postgresql.Driver</entry>
<entry key='database.url'>jdbc:postgresql://localhost/__DB_NAME__</entry>
<entry key='database.user'>__DB_USER__</entry>
<entry key='database.password'>__DB_PWD__</entry>
@ -34,6 +34,8 @@
<entry key='mail.smtp.starttls.enable'>false</entry>
<entry key='mail.smtp.username'>__APP__</entry>
<entry key='mail.smtp.password'>__MAIL_PWD__</entry>
<entry key='mail.smtp.from'>__APP__@__MAIN_DOMAIN__</entry>
<!--
<entry key='ldap.url'>ldap://127.0.0.1</entry>
<entry key='ldap.port'>389</entry>

View file

@ -1,11 +1,11 @@
Traccar is an open source GPS tracking system. This repository contains Java-based back-end service. It supports more than 200 GPS protocols and more than 2000 models of GPS tracking devices.
Traccar is an open source GPS tracking system. It supports more than 200 GPS protocols and more than 2000 models of GPS tracking devices.
### Features
Real-time GPS tracking
Driver behaviour monitoring
Detailed and summary reports
Geofencing functionality
Alarms and notifications
Account and device management
Email and SMS support
- Real-time GPS tracking
- Driver behaviour monitoring
- Detailed and summary reports
- Geofencing functionality
- Alarms and notifications
- Account and device management
- Email and SMS support

View file

@ -1,11 +1,11 @@
Traccar est un système de suivi GPS open source. Ce référentiel contient un service back-end basé sur Java. Il prend en charge plus de 200 protocoles GPS et plus de 2 000 modèles de dispositifs de suivi GPS.
Traccar est un système de suivi GPS open source. Il prend en charge plus de 200 protocoles GPS et plus de 2 000 modèles de dispositifs de suivi GPS.
### Caractéristiques
Suivi GPS en temps réel
Surveillance du comportement des conducteurs
Rapports détaillés et synthétiques
Fonctionnalité de géolocalisation
Alarmes et notifications
Gestion des comptes et des appareils
Assistance par e-mail et SMS
- Suivi GPS en temps réel
- Surveillance du comportement des conducteurs
- Rapports détaillés et synthétiques
- Fonctionnalité de géolocalisation
- Alarmes et notifications
- Gestion des comptes et des appareils
- Assistance par e-mail et SMS

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 KiB

After

Width:  |  Height:  |  Size: 438 KiB

View file

@ -67,7 +67,7 @@ ram.runtime = "50M"
[resources.ports]
[resources.apt]
packages = "mariadb-server, openjdk-11-jre-headless"
packages = "postgresql, openjdk-11-jre-headless"
[resources.database]
type = "mysql"
type = "postgresql"

View file

@ -41,11 +41,11 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf"
ynh_backup --src_path="/etc/systemd/system/$app.service"
#=================================================
# BACKUP THE MYSQL DATABASE
# BACKUP THE SQL DATABASE
#=================================================
ynh_print_info --message="Backing up the MySQL database..."
ynh_print_info --message="Backing up the PostgreSQL database..."
ynh_mysql_dump_db --database="$db_name" > db.sql
ynh_psql_dump_db --database="$db_name" > db.sql
#=================================================
# END OF SCRIPT

View file

@ -9,6 +9,8 @@
source _common.sh
source /usr/share/yunohost/helpers
main_domain=$(cat /etc/yunohost/current_host)
#=================================================
# APP "BUILD" (DEPLOYING SOURCES, VENV, COMPILING ETC)
#=================================================

View file

@ -31,11 +31,11 @@ ynh_restore_file --origin_path="$data_dir" --not_mandatory
chown -R $app:www-data "$data_dir"
#=================================================
# RESTORE THE MYSQL DATABASE
# RESTORE THE POSTGRESQL DATABASE
#=================================================
ynh_script_progression --message="Restoring the MySQL database..." --weight=1
ynh_script_progression --message="Restoring the PostgreSQL database..." --weight=1
ynh_mysql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
ynh_psql_connect_as --user=$db_user --password=$db_pwd --database=$db_name < ./db.sql
#=================================================
# RESTORE SYSTEM CONFIGURATIONS

View file

@ -11,6 +11,8 @@ source /usr/share/yunohost/helpers
upgrade_type=$(ynh_check_app_version_changed)
main_domain=$(cat /etc/yunohost/current_host)
#=================================================
# STOP SYSTEMD SERVICE
#=================================================