1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/cesium_ynh.git synced 2024-09-03 18:06:25 +02:00

[mod] Use ynh_secure_remove instead of 'rm -rf' as suggested by the linter

This commit is contained in:
Moul 2020-03-05 20:33:21 +01:00
parent 75929a36cd
commit 76e8cd986b
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get "$app" domain)
# Remove sources
rm -rf /var/www/$app
ynh_secure_remove /var/www/$app
# Remove configuration files
rm -f /etc/nginx/conf.d/$domain.d/$app.conf

View file

@ -27,7 +27,7 @@ path=${path%/}
src_path=/var/www/$app
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
rm -rf $src_path
ynh_secure_remove $src_path
mkdir -p $src_path
ynh_script_progression --message="Upgrading source files..." --time --weight=1