diff --git a/postlfs/security/make-ca.xml b/postlfs/security/make-ca.xml
index 4d694e8524..24da01dc38 100644
--- a/postlfs/security/make-ca.xml
+++ b/postlfs/security/make-ca.xml
@@ -183,7 +183,8 @@ openssl x509 -in class3.crt -text -fingerprint -setalias "CAcert Class 3 root" \
enable the systemd timer:
-cat > /etc/cron.weekly/update-pki.sh << "EOF" &&
+install -vdm755 /etc/cron.weekly &&
+cat > /etc/cron.weekly/update-pki.sh << "EOF" &&
#!/bin/bash
/usr/sbin/make-ca -g
EOF