]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Bugfixing
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 27 Mar 2018 16:10:50 +0000 (18:10 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 27 Mar 2018 16:10:50 +0000 (18:10 +0200)
bin/postinst

index 9da63164b8de255bc143617db88a75bdcf52fb0c..bbca9d5e7b050c58e580cb9daf23b385e48fcf9d 100644 (file)
@@ -49,7 +49,9 @@ for stem in ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key ; do
             mv -v "${TMP_FILE}" "/etc/ssh/${fullname}"
             if [[ "${stem}" == "${fullname}" ]] ; then
                 chown -v root:ssh_keys "/etc/ssh/${fullname}"
-                chmod -v 0750 "/etc/ssh/${fullname}"
+                chmod -v 0640 "/etc/ssh/${fullname}"
+            else
+                chmod -v 0644 "/etc/ssh/${fullname}"
             fi
         fi
         rm -f "${TMP_FILE}"