1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/shaarli_ynh.git synced 2024-09-03 20:26:10 +02:00

rm -r -> ynh_secure_remove (#59)

This commit is contained in:
Alexandre Aubin 2020-11-09 16:10:42 +01:00 committed by GitHub
parent 384df50bc9
commit 82a0ac5423
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,7 +104,7 @@ ynh_print_info "Upgrading source files..."
ynh_setup_source "$final_path"
cp -a "$tmpdir/data" "${final_path}/"
cp -a "$tmpdir/tpl" "${final_path}/"
rm -Rf "$tmpdir"
ynh_secure_remove "$tmpdir"
#=================================================
# NGINX CONFIGURATION
@ -147,7 +147,7 @@ ynh_script_progression --message="Upgrading logrotate configuration..."
# Temporary fix for .txt log file and ynh_use_logrotate
if [ -d "$final_path/data/log.txt" ]
then
rm -r "$final_path/data/log.txt"
ynh_secure_remove "$final_path/data/log.txt"
touch "$final_path/data/log.txt"
fi
ynh_use_logrotate --non-append