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:
parent
384df50bc9
commit
1c52f0d549
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue