aboutsummaryrefslogtreecommitdiffstats
path: root/deploy.sh
blob: 76fa2aa145ae0012d2a395198f83268cf5202a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

#check for root
BEROOT=""
if [ $(id -u) -ne 0 ];then
	BEROOT="sudo "
fi
$BEROOT rm /etc/udev/rules.d/*lavaworker-udev*rules
$BEROOT cp udev/*lavaworker-udev*rules /etc/udev/rules.d/
$BEROOT udevadm control --reload-rules || exit $?
$BEROOT udevadm trigger || exit $?

docker-compose build || exit 1
docker-compose up -d || exit 1