[elbe-devel] [PATCH] check for trusted.gpg before chmod

John Ogness john.ogness at linutronix.de
Fri Feb 10 10:01:55 CET 2017


Check for /etc/apt/trusted.gpg before setting it.

Signed-off-by: John Ogness <john.ogness at linutronix.de>
---
 My target system does not have /etc/apt/trusted.gpg.

 debian/elbe.postinst |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/elbe.postinst b/debian/elbe.postinst
index 23e8f4d..b7b21cc 100644
--- a/debian/elbe.postinst
+++ b/debian/elbe.postinst
@@ -1,4 +1,6 @@
 #!/bin/sh
 set -e
 # this is needed for jessie, in stretch/sid it is already go readable
-chmod go+r /etc/apt/trusted.gpg
+if [ -f /etc/apt/trusted.gpg ]; then
+	chmod go+r /etc/apt/trusted.gpg
+fi
-- 
1.7.10.4




More information about the elbe-devel mailing list