Skip to content

Commit

Permalink
remove post test setup logic as it has been replaced by the post boot…
Browse files Browse the repository at this point in the history
…strap hooks

Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
  • Loading branch information
reubenmiller committed Oct 3, 2024
1 parent a3a49b2 commit c81974c
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions images/common/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ USE_RANDOM_ID=${USE_RANDOM_ID:-0}
SHOULD_PROMPT=${SHOULD_PROMPT:-1}
CAN_PROMPT=0
UPLOAD_CERT_WAIT=${UPLOAD_CERT_WAIT:-1}
CONFIGURE_TEST_SETUP=${CONFIGURE_TEST_SETUP:-1}
TEST_USER=${TEST_USER:-iotadmin}
PREFIX=${PREFIX:-tedge_}
C8Y_BASEURL=${C8Y_BASEURL:-}
Expand Down Expand Up @@ -414,16 +413,6 @@ main() {
# ---------------------------------------
# Post setup
# ---------------------------------------
if [ "$CONFIGURE_TEST_SETUP" = 1 ]; then
# Add additional tools
if command_exists systemctl; then
if [ -d /run/systemd/system ]; then
sudo systemctl restart tedge-agent
sudo systemctl restart c8y-firmware-plugin
fi
fi
fi

# Run optional post bootstrap scripts
if [ -d "$BOOTSTRAP_POSTINST_DIR" ]; then
for script in "$BOOTSTRAP_POSTINST_DIR"/*.sh; do
Expand Down

0 comments on commit c81974c

Please sign in to comment.