Skip to content

Commit

Permalink
debug cert permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
reubenmiller committed Sep 9, 2024
1 parent 7dbe8ed commit b263699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cont-init.d/50_configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ MAPPERS="c8y az aws"
for MAPPER in $MAPPERS; do
if tedge config get "${MAPPER}.url" 2>/dev/null; then
# Don't perform a connection test
tedge connect "$MAPPER" --offline ||:
tedge connect "$MAPPER" ||:
fi
done
3 changes: 1 addition & 2 deletions scripts/manage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ create_cert() {
COMMON_NAME="$1"
if command -V tedge >/dev/null 2>&1; then
tedge cert create --config-dir "$(pwd)" --device-id "$COMMON_NAME"
chmod 644 "$(pwd)/device-certs"/*
chown 1000:1000 "$(pwd)/device-certs"/*
chmod 444 "$(pwd)/device-certs"/*
else
# docker run $DOCKER_OPTIONS --user root -v "$DEVICE_CERTS:/etc/tedge/device-certs" ghcr.io/thin-edge/tedge:latest tedge cert create --device-id "$COMMON_NAME"
docker run $DOCKER_OPTIONS --user "1000:101" -v "$DEVICE_CERTS:/etc/tedge/device-certs" ghcr.io/thin-edge/tedge:latest tedge cert create --device-id "$COMMON_NAME"
Expand Down

0 comments on commit b263699

Please sign in to comment.