mirror of
https://github.com/YunoHost-Apps/ulogger_ynh.git
synced 2024-10-01 13:34:45 +02:00
Fix
This commit is contained in:
parent
fb48c76cd0
commit
499724f278
4 changed files with 1 additions and 10 deletions
|
@ -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",
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -96,4 +96,3 @@ systemctl reload nginx
|
|||
#=================================================
|
||||
|
||||
ynh_print_info "Restoration completed for $app"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue