summaryrefslogtreecommitdiffstats
path: root/ci/installation_scripts/install_for_arm.sh
blob: 45fcd04ddc58598becbef6b51581fe2aadc853bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash -x

set -euo pipefail

PKG_DIR=$1

# Load the package list as $EXTERNAL_ARM_PACKAGES, $RELEASE_PACKAGES
# shellcheck disable=SC1091
source ./ci/package_list.sh

# Install pre-required packages
sudo apt-get --assume-yes install "${EXTERNAL_ARM_PACKAGES[*]}"

# Install thin-edge packages
for PACKAGE in "${RELEASE_PACKAGES[@]}"
do
    sudo dpkg -i ./"$PKG_DIR"/"$PACKAGE"_0.*_armhf.deb
done

# Configure collectd
sudo cp "/etc/tedge/contrib/collectd/collectd.conf" "/etc/collectd/collectd.conf"

# Change downloaded binaries to executable for testing
chmod +x /home/pi/examples/sawtooth_publisher
chmod +x /home/pi/tedge_dummy_plugin/tedge_dummy_plugin