z4lab / z4lab-surftimer

A CS:GO Surftimer for the z4lab Community
https://z4lab.com
GNU General Public License v3.0
16 stars 9 forks source link

[BUG] Fix upgrade-fluffys.sh for CentOS #126

Closed anguspaterson-code closed 4 years ago

anguspaterson-code commented 4 years ago

Found that when upgrading using the upgrade-fluffys.sh script

wget https://raw.githubusercontent.com/totles/z4lab-surftimer/master/cfg/sourcemod/surftimer/main.cfg -P "${SERVERDIR}/cfg/sourcemod/surftimer/main.cfg"

Created a directory instead of placing the file there.

wget https://raw.githubusercontent.com/totles/z4lab-surftimer/master/cfg/sourcemod/surftimer/main.cfg -P "${SERVERDIR}/cfg/sourcemod/surftimer/"

removing main.cfg at the end should fix this. Not sure if this applies for different versions of linux. In that case you would need to execute a bash script to check for $OSTYPE or "cat /etc/os-release"