From 676ca3c3cd9f69b6775e3525d4891e21a50211c9 Mon Sep 17 00:00:00 2001
From: liberodark <liberodark@gmail.com>
Date: Fri, 17 Jan 2020 11:24:41 +0100
Subject: [PATCH] Update install

---
 scripts/install | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/scripts/install b/scripts/install
index 15da319..2713769 100644
--- a/scripts/install
+++ b/scripts/install
@@ -166,15 +166,15 @@ ynh_replace_string "yunobase"   "$db_name"    "$final_path/config.php"
 ### that really need such authorization.
 
 # Remove non utile files
-rm -f $final_path/config.dist.php
-rm -f $final_path/config.docker.php
-rm -f $final_path/INSTALL.txt
-rm -f $final_path/README.md
-rm -f $final_path/.htaccess
-rm -rf $final_path/install
-rm -rf $final_path/.gitmodules
-rm -rf $final_path/.github
-rm -rf $final_path/.gitignore
+ynh_secure_remove $final_path/config.dist.php
+ynh_secure_remove $final_path/config.docker.php
+ynh_secure_remove $final_path/INSTALL.txt
+ynh_secure_remove $final_path/README.md
+ynh_secure_remove $final_path/.htaccess
+ynh_secure_remove $final_path/install
+ynh_secure_remove $final_path/.gitmodules
+ynh_secure_remove $final_path/.github
+ynh_secure_remove $final_path/.gitignore
 
 
 # Set permissions to app files