Browse Source

Fix typo in remove script

Co-authored-by: hidrarga <hidrarga@users.noreply.github.com>
Alexandre Aubin 3 years ago
parent
commit
bf76a7ed4e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      scripts/remove

+ 2 - 2
scripts/remove

@@ -86,10 +86,10 @@ ynh_remove_app_dependencies
 #=================================================
 # REMOVE LEGACY INTERFACES
 #=================================================
-if [ -d /etc/nginx/conf.d/*.d/$app.conf ]; then
+if [ -f /etc/nginx/conf.d/*.d/$app.conf ]; then
 	ynh_secure_remove /etc/nginx/conf.d/*.d/$app.conf
 fi
-if [ -d /etc/php/*/fpm/pool.d/$app.conf ]; then
+if [ -f /etc/php/*/fpm/pool.d/$app.conf ]; then
 	ynh_secure_remove /etc/php/*/fpm/pool.d/$app.conf
 fi
 if [ -d /var/www/$app ]; then