Fix umask of database
authorSam Hartman <hartmans@debian.org>
Fri, 3 Oct 2014 15:16:12 +0000 (11:16 -0400)
committerSam Hartman <hartmans@debian.org>
Fri, 3 Oct 2014 15:16:12 +0000 (11:16 -0400)
debian/changelog
debian/moonshot-trust-router.postinst

index 0dcb06b..f183c8f 100644 (file)
@@ -1,3 +1,9 @@
+moonshot-trust-router (1.4-8) unstable; urgency=medium
+
+  * Fix umask of database
+
+ -- Sam Hartman <hartmans@debian.org>  Fri, 03 Oct 2014 11:15:57 -0400
+
 moonshot-trust-router (1.4-7) unstable; urgency=medium
 
   * Remove debugging and fix postinst script to work when SHELL is not set.
index b300f17..7a4afbe 100644 (file)
@@ -20,7 +20,7 @@ case "$1" in
         if dpkg --compare-versions "$2" lt 1.2-2; then
            adduser --quiet --system --home /var/lib/trust_router --group --disabled-login trustrouter
            fi
-       su -s /bin/sh  -c "/usr/bin/sqlite3 </usr/share/trust_router/schema.sql /var/lib/trust_router/keys" trustrouter ||true
+       su -s /bin/sh  -c "umask 027&&/usr/bin/sqlite3 </usr/share/trust_router/schema.sql /var/lib/trust_router/keys" trustrouter ||true
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)