Only create /home/minecraft if absent

* only download/build Spigot/Bukkit when absent
* refactored download ops into functions
#72
This commit is contained in:
Geoff Bourne
2016-04-24 07:26:26 -05:00
parent cf5d194b14
commit 46c865a123
2 changed files with 106 additions and 91 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ while lsof -- /start-minecraft; do
sleep 1
done
mkdir /home/minecraft
mkdir -p /home/minecraft
chown minecraft: /home/minecraft
echo "Switching to user 'minecraft'"