mirror of
https://github.com/YunoHost-Apps/traccar_ynh.git
synced 2024-09-03 20:35:56 +02:00
commit
6a7f9e2c33
11 changed files with 49 additions and 42 deletions
16
README.md
16
README.md
|
@ -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
|
||||
|
|
17
README_fr.md
17
README_fr.md
|
@ -16,17 +16,18 @@ Si vous n’avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) po
|
|||
|
||||
## Vue d’ensemble
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -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&serverTimezone=UTC&allowPublicKeyRetrieval=true&useSSL=false&allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&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>
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 |
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue