diff --git a/SOURCES/kf2-srv b/SOURCES/kf2-srv index 9f8913e..ceebe09 100755 --- a/SOURCES/kf2-srv +++ b/SOURCES/kf2-srv @@ -319,14 +319,21 @@ function map_sync () # $1: [InstanceName] local Config="$InstanceConfigDir/$Instance/LinuxServer-KFGame.ini" for MapFile in $(find "$CustomMapsDir" -type f -name '*.kfm' -printf "%f\n") do - MapName=$(echo "$MapFile" | grep -Po '([^\/]*).kfm') + MapName=$(echo "$MapFile" | sed -r 's|.kfm$||g') if [[ ! -f "$Config" ]]; then echo "$Config does not exist!" elif grep -qP "MapName=$MapName[ $]" "$Config"; then echo "$MapName is already in $Config." else echo "Adding $MapName to $Config." - echo -e "\n[$MapName KFMapSummary]\nMapName=$MapName" >> "$Config" + echo -e " +[$MapName KFMapSummary] +MapName=$MapName +bPlayableInSurvival=True +bPlayableInWeekly=True +bPlayableInVsSurvival=True +bPlayableInEndless=True +bPlayableInObjective=False" >> "$Config" fi done else diff --git a/SPECS/kf2-srv.spec b/SPECS/kf2-srv.spec index dae2769..b0ba3ce 100644 --- a/SPECS/kf2-srv.spec +++ b/SPECS/kf2-srv.spec @@ -1,5 +1,5 @@ Name: kf2-srv -Version: 0.2.0 +Version: 0.2.1 Release: 1%{dist} Summary: Killing Floor 2 server Group: Amusements/Games @@ -20,7 +20,7 @@ Requires: steamcmd Provides: %{name} %description -Killing Floor 2 server +Command line tool for managing a set of Killing Floor 2 servers. %prep @@ -75,6 +75,9 @@ if [[ $1 -eq 0 ]] ; then # Uninstall fi %changelog +* Mon Sep 16 2019 GenZmeY - 0.2.1-1 +- --map-sync bugfixes. + * Mon Sep 16 2019 GenZmeY - 0.2.0-1 - Add --map-sync implementation to kf2-srv.