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 #1 from YunoHost-Apps/testing

cleaning
This commit is contained in:
eric_G 2023-11-19 14:27:49 +01:00 committed by GitHub
commit 7cc879b997
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 10 additions and 10 deletions

View file

@ -26,7 +26,7 @@
<entry key='web.port'>__PORT__</entry>
<entry key='media.path '>__DATA_DIR__</entry>
<entry key='media.path'>__DATA_DIR__</entry>
<entry key='mail.smtp.host'>localhost</entry>
<entry key='mail.smtp.port'>25</entry>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1 MiB

After

Width:  |  Height:  |  Size: 554 KiB

View file

@ -12,7 +12,7 @@ version = "5.9~ynh1"
maintainers = ["eric_G"]
[upstream]
license = "GPL-3.0-Only"
license = "GPL-3.0-only"
website = "https://www.traccar.org/"
demo = "https://www.traccar.org/demo-server/"
admindoc = "https://www.traccar.org/documentation/"

View file

@ -16,7 +16,7 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
#=================================================
# MODIFY URL IN NGINX CONF
@ -32,7 +32,7 @@ ynh_change_url_nginx_config
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -55,7 +55,7 @@ chown $app:$app "$install_dir/conf/traccar.xml"
ynh_script_progression --message="Starting a systemd service..." --weight=1
# Start a systemd service
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
#=================================================
# END OF SCRIPT

View file

@ -59,7 +59,7 @@ yunohost service add $app --description="Modern GPS tracking platform" --log="/v
ynh_script_progression --message="Reloading NGINX web server and $app's service..." --weight=1
# Typically you only have either $app or php-fpm but not both at the same time...
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd"
ynh_systemd_action --service_name=nginx --action=reload

View file

@ -29,7 +29,7 @@ then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from manifest.toml
ynh_setup_source --dest_dir="$install_dir"
ynh_setup_source --dest_dir="$install_dir" --keep="conf/traccar.xml"
fi
chown -R $app:www-data "$install_dir"
@ -53,10 +53,10 @@ yunohost service add $app --description="Modern GPS tracking platform" --log="/v
#=================================================
ynh_script_progression --message="Updating a configuration file..." --weight=1
ynh_add_config --template="some_config_file" --destination="$install_dir/some_config_file"
ynh_add_config --template="traccar.xml" --destination="$install_dir/conf/traccar.xml"
chmod 400 "$install_dir/some_config_file"
chown $app:$app "$install_dir/some_config_file"
chmod 400 "$install_dir/conf/traccar.xml"
chown $app:$app "$install_dir/conf/traccar.xml"
#=================================================
# START SYSTEMD SERVICE