-
Notifications
You must be signed in to change notification settings - Fork 10
/
dev-stack-install.sh
executable file
·34 lines (25 loc) · 1.05 KB
/
dev-stack-install.sh
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
26
27
28
29
30
31
32
33
34
#!/usr/bin/env bash
# Build the core packages
sudo systemctl stop deepracer-core
# Clean up older install
if [[ -d /opt/aws/deepracer/lib.custom ]]
then
echo "Custom install exists. Deleting."
sudo rm -rf /opt/aws/deepracer/lib.custom
fi
# Copy the build
echo "Copy files"
sudo cp -Rp $(pwd)/ws/install /opt/aws/deepracer/lib.custom
# Copy in the console code
echo "Copying console code"
sudo cp -Rp /opt/aws/deepracer/lib/device_console /opt/aws/deepracer/lib.custom/
# Disable automatic video playing
sudo sed -i "s/isVideoPlaying\: true/isVideoPlaying\: false/" /opt/aws/deepracer/lib.custom/device_console/static/bundle.js
# Create logs directory
sudo mkdir -p /opt/aws/deepracer/logs
# Re-point start to custom stack
sudo sed -i "s/\/opt\/aws\/deepracer\/lib\/setup.bash/\/opt\/aws\/deepracer\/lib.custom\/setup.bash/g" /opt/aws/deepracer/start_ros.sh
# Doublecheck all dependencies (useful on remote install)
sudo rosdep install -i --from-path /opt/aws/deepracer/lib.custom/ --rosdistro foxy -y
# Restart deepracer
sudo systemctl restart deepracer-core