mirror of
https://github.com/YunoHost-Apps/garradin_ynh.git
synced 2024-09-03 18:36:17 +02:00
remove file_checksum md5 not needed
This commit is contained in:
parent
da7dfd3172
commit
7572a959cc
4 changed files with 8 additions and 32 deletions
|
@ -18,7 +18,6 @@ site de garradin : http://garradin.eu
|
|||
- À travers l'interface d'administration
|
||||
|
||||
### TODO list :
|
||||
- Backup de la base de donnée SQlite (AIDE REQUISE)? [Résolu]
|
||||
- Permissions de certains fichiers sensibles ?
|
||||
|
||||
#### Problèmes / Avertissements :
|
||||
|
|
|
@ -53,17 +53,4 @@ ynh_backup --src_path="/etc/php/7.0/fpm/pool.d/$app.conf"
|
|||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
||||
ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --time --last
|
||||
#ynh_backup --src_path="/etc/php/7.0/fpm/conf.d/20-$app.ini"
|
||||
|
||||
# # Backup directory location for the app from where the script is executed and
|
||||
# # which will be compressed afterward
|
||||
# backup_dir=$YNH_APP_BACKUP_DIR
|
||||
|
||||
# # Backup sources & data
|
||||
# ynh_backup "/var/www/$app" "sources"
|
||||
|
||||
# # Copy Nginx conf
|
||||
# sudo mkdir -p ./conf
|
||||
# ynh_backup "/etc/nginx/conf.d/$domain.d/$app.conf" "conf/nginx.conf"
|
|
@ -79,12 +79,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
|||
# Download, check integrity, uncompress and patch the source from app.src
|
||||
ynh_setup_source --dest_dir="$final_path"
|
||||
|
||||
#=================================================
|
||||
# Files owned by user app
|
||||
#=================================================
|
||||
|
||||
chown $app:$app $final_path -R
|
||||
chmod 755 $final_path -R
|
||||
|
||||
#=================================================
|
||||
# NGINX CONFIGURATION
|
||||
|
@ -125,8 +119,7 @@ ynh_script_progression --message="Reloading nginx web server..." --time --weight
|
|||
systemctl reload nginx
|
||||
|
||||
#=================================================
|
||||
# Change options in file config.dist.php
|
||||
# and copy in local.dist.php
|
||||
# MODIFY A CONFIG FILE
|
||||
#=================================================
|
||||
key=$(ynh_string_random --length=50)
|
||||
cp -a $final_path/config.dist.php $final_path/config.local.php
|
||||
|
@ -138,6 +131,13 @@ else
|
|||
ynh_replace_string --match_string="//const WWW_URI = '/asso/';" --replace_string="const WWW_URI = '$path_url/';" --target_file="$final_path/config.local.php"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
# Files owned by user app
|
||||
#=================================================
|
||||
|
||||
chown $app:$app $final_path -R
|
||||
chmod 755 $final_path -R
|
||||
|
||||
#=================================================
|
||||
# END OF SCRIPT
|
||||
#=================================================
|
||||
|
|
|
@ -172,16 +172,6 @@ then
|
|||
cp -a $backup_bdd $final_path/association.sqlite
|
||||
fi
|
||||
|
||||
# #=================================================
|
||||
# # STORE THE CONFIG FILE CHECKSUM
|
||||
# #=================================================
|
||||
|
||||
# ### 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 --file="$final_path/CONFIG_FILE"
|
||||
# # Recalculate and store the checksum of the file for the next upgrade.
|
||||
ynh_store_file_checksum --file="$final_path/CONFIG_FILE"
|
||||
|
||||
#=================================================
|
||||
# Files owned by user app
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue