aboutsummarylogtreecommitdiffstats
path: root/dom4
diff options
context:
space:
mode:
authorDian Fay2016-09-24 14:43:51 -0400
committerDian Fay2016-09-24 14:43:51 -0400
commitabf27b0c25c88260081c0cd45897f785e298108d (patch)
tree7d1519796774fc1433e05f1e16f685031b978ceb /dom4
parent1e19758b5dd7beee5e9d009308f3364575ca8ae6 (diff)
downloadaur-abf27b0c25c88260081c0cd45897f785e298108d.tar.gz
fix user setup
Diffstat (limited to 'dom4')
-rwxr-xr-xdom45
1 files changed, 3 insertions, 2 deletions
diff --git a/dom4 b/dom4
index f2d2b9ac389c..73d2ba6178c2 100755
--- a/dom4
+++ b/dom4
@@ -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)"