diff options
author | Dian Fay | 2016-09-24 14:43:51 -0400 |
---|---|---|
committer | Dian Fay | 2016-09-24 14:43:51 -0400 |
commit | abf27b0c25c88260081c0cd45897f785e298108d (patch) | |
tree | 7d1519796774fc1433e05f1e16f685031b978ceb /dom4 | |
parent | 1e19758b5dd7beee5e9d009308f3364575ca8ae6 (diff) | |
download | aur-abf27b0c25c88260081c0cd45897f785e298108d.tar.gz |
fix user setup
Diffstat (limited to 'dom4')
-rwxr-xr-x | dom4 | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -18,6 +18,7 @@ function change { echo "Setting $1 up for hosting." echo "$1" > /usr/share/dom4/current + chown dom4:dom4 /usr/share/dom4/current } # Load a properties file. @@ -123,7 +124,7 @@ function ready { if [[ -s "/usr/share/dom4/savedgames/$game/ftherlnd" ]]; then echo "$game has already been started. If the service is not running, start it with systemctl." - exit 1 + exit 0 fi players=$(ls -1 /usr/share/dom4/savedgames/$game/*.2h | wc -l) @@ -131,7 +132,7 @@ function ready { if grep -qE "uploadtime|uploadmaxp" /usr/share/dom4/config/$game.properties ; then echo "Upload flag already set for $game. Start the service with systemctl." - exit 1 + exit 0 fi echo "Setting start flag for $game ($players players)" |