1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ulogger_ynh.git synced 2024-10-01 13:34:45 +02:00
This commit is contained in:
ericgaspar 2021-01-26 09:14:29 +01:00
parent fb48c76cd0
commit 499724f278
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 1 additions and 10 deletions

View file

@ -3,7 +3,7 @@
"id": "ulogger",
"packaging_format": 1,
"description": {
"en": "A real-time collection of geolocation data, tracks viewing and management.",
"en": "Real-time collection of geolocation data, tracks viewing and management.",
"fr": "Géolocalisation en temps réel, gestion et affichage de traces."
},
"version": "0.5~ynh1",

View file

@ -81,8 +81,6 @@ cp -r ../conf/config.php $final_path
#=================================================
ynh_script_progression --message="Configuring nginx web server..."
### `ynh_add_nginx_config` will use the file conf/nginx.conf
# Create a dedicated nginx config
ynh_add_nginx_config
@ -152,10 +150,6 @@ ynh_replace_string "^\$enabled = true;" "\$enabled = false;" "$final_path/script
# STORE THE CONFIG FILE CHECKSUM
#=================================================
### `ynh_store_file_checksum` is used to store the checksum of a file.
### That way, during the upgrade script, by using `ynh_backup_if_checksum_is_different`,
### you can make a backup of this file before modifying it again if the admin had modified it.
# Calculate and store the config file checksum into the app settings
ynh_store_file_checksum "$final_path/config.php"

View file

@ -96,4 +96,3 @@ systemctl reload nginx
#=================================================
ynh_print_info "Restoration completed for $app"

View file

@ -128,8 +128,6 @@ ynh_add_fpm_config
# SPECIFIC UPGRADE
#=================================================
### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script.
### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it.
ynh_backup_if_checksum_is_different "$final_path/conf.php"
# Recalculate and store the config file checksum into the app settings
ynh_store_file_checksum "$final_path/config.php"