29 lines
535 B
Bash
Executable File
29 lines
535 B
Bash
Executable File
#!/bin/bash
|
|
# Check if root
|
|
if [ "$EUID" -ne 0 ]
|
|
then echo "Please run as root"
|
|
exit
|
|
fi
|
|
|
|
cd radio-lap
|
|
docker build . -t decawave
|
|
cd ..
|
|
|
|
cd hokuyo
|
|
docker build . -t hokuyo
|
|
cd ..
|
|
|
|
cd Legacy
|
|
docker build . -t irth7/rosaria-legacy
|
|
cd ..
|
|
|
|
cp 99-decawave.rules /etc/udev/rules.d/
|
|
cp 99-hokuyo.rules /etc/udev/rules.d/
|
|
|
|
cp rosaria-docker.service /etc/systemd/system/
|
|
chmod g+w /etc/systemd/system/rosaria-docker.service
|
|
|
|
systemctl daemon-reload
|
|
systemctl enable rosaria-docker.service
|
|
systemctl restart rosaria-docker.service
|