summaryrefslogtreecommitdiffstats
path: root/remote/modules/pvs2/data/opt/openslx/scripts/setup-pvsmgr
blob: f58ce099a041c0950e398e3d5b3055eeae3dbe8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/ash

openbox &

. /opt/openslx/config
if [ -n "$SLX_PVS_CONFIG_URL" ]; then
	[ -z "$UID" ] && UID="$(id -u)"
	[ -z "$HOME" ] && HOME="$(getent passwd "$UID" | head -n 1 | awk -F ':' '{print $6}')"
	wget -O "$HOME/.config/openslx/pvs2/pvs2.ini" "$SLX_PVS_CONFIG_URL"
fi

exec /opt/openslx/bin/pvsmgr --manager-only