Browse Source

Fix remove script

Julien VAUBOURG 10 years ago
parent
commit
d9cff83cba
2 changed files with 2 additions and 2 deletions
  1. 1 1
      conf/init_ynh-torclient
  2. 1 1
      scripts/remove

+ 1 - 1
conf/init_ynh-torclient

@@ -128,7 +128,7 @@ do_start() {
 
 do_stop() {
   echo "[torclient] Stopping..."
-  rm /tmp/.ynh-torclient-started
+  rm -f /tmp/.ynh-torclient-started
 
   if is_nat_set; then
     echo "Unset NAT"

+ 1 - 1
scripts/remove

@@ -32,7 +32,7 @@ sudo yunohost firewall disallow UDP 9053
 sudo yunohost firewall disallow TCP 9040
 
 # Remove confs
-sudo rm -rf /etc/tor*
+sudo rm -f /etc/tor/torrc.tpl
 sudo rm -f /etc/nginx/conf.d/${domain}.d/torclient.conf
 sudo rm -f /etc/php5/fpm/pool.d/torclient.conf