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

This commit is contained in:
Alexandre Aubin 2020-11-09 16:06:02 +01:00 committed by GitHub
parent 384df50bc9
commit 1c52f0d549
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" ynh_setup_source "$final_path"
cp -a "$tmpdir/data" "${final_path}/" cp -a "$tmpdir/data" "${final_path}/"
cp -a "$tmpdir/tpl" "${final_path}/" cp -a "$tmpdir/tpl" "${final_path}/"
rm -Rf "$tmpdir" ynh_secure_remove "$tmpdir"
#================================================= #=================================================
# NGINX CONFIGURATION # NGINX CONFIGURATION
@ -147,7 +147,7 @@ ynh_script_progression --message="Upgrading logrotate configuration..."
# Temporary fix for .txt log file and ynh_use_logrotate # Temporary fix for .txt log file and ynh_use_logrotate
if [ -d "$final_path/data/log.txt" ] if [ -d "$final_path/data/log.txt" ]
then then
rm -r "$final_path/data/log.txt" ynh_secure_remove "$final_path/data/log.txt"
touch "$final_path/data/log.txt" touch "$final_path/data/log.txt"
fi fi
ynh_use_logrotate --non-append ynh_use_logrotate --non-append