1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/firefly-iii_ynh.git synced 2024-09-03 18:36:13 +02:00

rm -r -> ynh_secure_remove

This commit is contained in:
Alexandre Aubin 2020-11-09 16:04:39 +01:00 committed by GitHub
parent e22d59ac11
commit 01d1cdb240
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,7 +101,7 @@ then
mkdir -p "$final_path/storage/export/" mkdir -p "$final_path/storage/export/"
cp -a "$final_path/storage/upload/" "$tmpdir/storage/upload/" cp -a "$final_path/storage/upload/" "$tmpdir/storage/upload/"
cp -a "$final_path/storage/export/" "$tmpdir/storage/export/" cp -a "$final_path/storage/export/" "$tmpdir/storage/export/"
rm -Rf "$final_path" ynh_secure_remove "$final_path"
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" ynh_setup_source --dest_dir="$final_path"
@ -111,7 +111,7 @@ then
cp -a "$tmpdir/storage/export/" "$final_path/storage/export/" cp -a "$tmpdir/storage/export/" "$final_path/storage/export/"
# Remove temporary directory # Remove temporary directory
rm -Rf "$tmpdir" ynh_secure_remove "$tmpdir"
fi fi