Skip to content

Commit

Permalink
rm -r -> ynh_secure_remove (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Nov 9, 2020
1 parent 384df50 commit 82a0ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 82a0ac5

Please sign in to comment.