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

. /opt/openslx/config
DST="/opt/openslx/pvs2/pvs2.ini"

# Try to get fresh version from server
if [ -n "$SLX_PVS_CONFIG_URL" ]; then
	wget -T 10 -O "${DST}.new" "$SLX_PVS_CONFIG_URL"
	[ -s "${DST}.new" ] && mv -f "${DST}.new" "${DST}"
fi

exit 0