summaryrefslogtreecommitdiff
path: root/rotate-keys.in
diff options
context:
space:
mode:
Diffstat (limited to 'rotate-keys.in')
-rw-r--r--rotate-keys.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/rotate-keys.in b/rotate-keys.in
index 0fc6a44..ea50400 100644
--- a/rotate-keys.in
+++ b/rotate-keys.in
@@ -69,7 +69,8 @@ if [ "$(whoami)" != "${certificate_user}" ]; then
fi
chown -R "${certificate_user}" "${key_dir}"
- exec su "${certificate_user}" -s /bin/bash -c "${me}"
+ su "${certificate_user}" -s /bin/bash -c "${me}"
+ exit $?
fi
>&2 printf 'only root can su %s\n' "${certificate_user}"
exit 1