Skip to content

Commit

Permalink
quote jwt filename
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Nov 20, 2024
1 parent ab41c2a commit 600180a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion programs/ziti-edge-tunnel/package/deb/postinst.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if [ "$1" = "configure" ]; then
fi
fi

# update permissions
# update permissions in /var/lib/ziti, /opt/openziti/etc/identities
chown -R ziti:ziti "@ZITI_STATE_DIR@"
chmod -R u=rwX,g=rwX,o= "@ZITI_STATE_DIR@"

Expand Down
2 changes: 1 addition & 1 deletion programs/ziti-edge-tunnel/package/rpm/post.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fi

%systemd_post $SYSTEMD_SERVICE_NAME

# update permissions
# update permissions in /var/lib/ziti, /opt/openziti/etc/identities
chown ziti:ziti "@ZITI_STATE_DIR@" || :
chmod -R u=rwX,g=rwX,o= "@ZITI_STATE_DIR@" || :

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ for JWT in @ZITI_IDENTITY_DIR@/*.jwt; do
}
# equivalent to BASH's ${JWT%.jwt}.json
CONFIG="$(echo "${JWT}" | sed -E 's|(.*).jwt|\1.json|')"
if @CPACK_BIN_DIR@/@SYSTEMD_SERVICE_NAME@ enroll --jwt ${JWT} --identity ${CONFIG}; then
if @CPACK_BIN_DIR@/@SYSTEMD_SERVICE_NAME@ enroll --jwt "${JWT}" --identity "${CONFIG}"; then
rm --force "${JWT}"
echo "INFO: enrolled $(basename "${JWT}") in ${CONFIG}"
else
Expand Down

0 comments on commit 600180a

Please sign in to comment.