Don't recreate the log directory if it is still available
authorAdam Bishop <adam@omega.org.uk>
Wed, 3 Sep 2014 13:02:02 +0000 (14:02 +0100)
committerAdam Bishop <adam@omega.org.uk>
Wed, 3 Sep 2014 13:02:02 +0000 (14:02 +0100)
trust_router.spec

index 68a43f7..323a55c 100644 (file)
@@ -96,7 +96,7 @@ chown trustrouter:trustrouter /var/lib/trust_router/keys
 chmod 660 /var/lib/trust_router/keys
 
 # Log Directory
-mkdir /var/log/trust_router
+test -d /var/log/trust_router ||mkdir /var/log/trust_router
 chown root:trustrouter /var/log/trust_router
 chmod 770 /var/log/trust_router