aboutsummaryrefslogtreecommitdiffstats
path: root/lava-master/device-types-patch/patch-device-type.sh
blob: eb7da430f8958aae6252c4896cbd7ca1bbe24b2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

DEVTYPE_PATH=/etc/lava-server/dispatcher-config/device-types/
if [ -e /usr/share/lava-server/device-types/ ];then
	DEVTYPE_PATH=/usr/share/lava-server/device-types/
fi

cd $DEVTYPE_PATH
for patch in $(ls /root/device-types-patch/*patch)
do
	echo "DEBUG: patch with $patch"
	sed -i 's,lava_scheduler_app/tests/device-types/,,' $patch
done
chown -R lavaserver:lavaserver $DEVTYPE_PATH