Setup running prperly again
This commit is contained in:
parent
fdc659aa4c
commit
0d88131648
@ -13,11 +13,10 @@ services:
|
||||
- ./config:/root/.config/i3/config
|
||||
- /data/valley_saves:/root/.config/StardewValley/Saves/
|
||||
devices:
|
||||
#- /dev/dsp:/dev/dsp
|
||||
- /dev/snd:/dev/snd
|
||||
entrypoint:
|
||||
- /bin/sh
|
||||
- /init.sh
|
||||
cpus: 0.5
|
||||
cpuset: '2'
|
||||
#cpus: 2
|
||||
#cpuset: 0,1
|
||||
|
||||
|
5
init.sh
5
init.sh
@ -4,7 +4,6 @@ if [ ! -d /data/Stardew ]; then
|
||||
|
||||
echo "Downloading Game"
|
||||
mkdir -p /data/Stardew
|
||||
mkdir -p /data/nexus
|
||||
wget https://eris.cc/Stardew_latest.tar -qO /data/latest.tar
|
||||
|
||||
echo "Unpacking"
|
||||
@ -16,7 +15,8 @@ if [ ! -f /data/nexus.tar ]; then
|
||||
wget https://github.com/Pathoschild/SMAPI/releases/download/2.11.1/SMAPI-2.11.1-installer.zip -qO /data/nexus.zip
|
||||
|
||||
echo "Unpacking Modloader"
|
||||
unzip nexus.zip -d /data/nexus/
|
||||
mkdir -p /data/nexus
|
||||
unzip /data/nexus.zip -d /data/nexus/
|
||||
|
||||
echo "Installing Modloader"
|
||||
/bin/bash -c "echo -e \"2\n/data/Stardew/Stardew\ Valley\n1\n\" | /usr/bin/mono /data/nexus/SMAPI\ 2.11.1\ installer/internal/unix-install.exe"
|
||||
@ -35,6 +35,7 @@ apt-get install -y xterm i3
|
||||
Xvfb :10 -screen 0 1000x1000x24 -ac &
|
||||
export DISPLAY=:10.0
|
||||
x11vnc -display :10 -forever -shared -loop &
|
||||
sleep 10
|
||||
i3 &
|
||||
|
||||
TERM=xterm
|
||||
|
@ -36,6 +36,6 @@ resource "hcloud_server" "game_node" {
|
||||
}
|
||||
|
||||
working_dir = "."
|
||||
command = "ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address},"
|
||||
command = "ANSIBLE_HOST_KEY_CHECKING=false ansible-playbook -u root --private-key ./ssh/key ../playbook.yml -i ${self.ipv4_address},"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user