diff --git a/debian/postinst b/debian/postinst
index 5992a913af0643bde4f299b2955033b448355268..b09c0f196f8a01591e31c25e629c8042c50a0e74 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -19,7 +19,7 @@ set -e
 
 
 create_users() {
-    if ! getent passwd log 2>/dev/null ; then
+    if ! getent passwd log >/dev/null ; then
 	adduser --system --home /var/log --no-create-home --group log
     fi
 }
@@ -35,7 +35,7 @@ create_log_dir() {
 activate_services() {
     for svc in $@ ; do
         test -e /etc/service/$svc \
-        || ln -s /etc/radioai/svc/$svc /etc/service/$svc
+        || ln -s /etc/svc/$svc /etc/service/$svc
     done
 }
 
diff --git a/debian/rules b/debian/rules
index 926be2ac5a269a115f4a8a072a1a5bea37ba75e0..528eedfa18874ae8bbf7a849732149de97451800 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,7 +19,7 @@ export DH_OPTIONS
 GOPKG = git.autistici.org/ale/radioai
 
 DESTDIR = $(CURDIR)/debian/radioai
-SVCDIR = $(DESTDIR)/etc/radioai/svc
+SVCDIR = $(DESTDIR)/etc/svc
 
 %:
 	dh $@ 
@@ -46,8 +46,8 @@ override_dh_install:
 	  install -d -o root -g root $(SVCDIR)/$$f/log ; \
 	  install -m 755 -o root -g root debian/services/$$f \
 		$(SVCDIR)/$$f/run ; \
-	  chmod 0755 $(SVCDIR)/$$f/log/run ; \
 	  echo -e '#!/bin/sh\nexec chpst -u log svlogd -tt /var/log/radioai/'$$f > \
 		$(SVCDIR)/$$f/log/run ; \
+	  chmod 0755 $(SVCDIR)/$$f/log/run ; \
 	 done)