Setup running prperly again

This commit is contained in:
norimicry 2019-04-14 06:02:02 +02:00
parent fdc659aa4c
commit 0d88131648
3 changed files with 6 additions and 6 deletions

View File

@ -13,11 +13,10 @@ services:
- ./config:/root/.config/i3/config - ./config:/root/.config/i3/config
- /data/valley_saves:/root/.config/StardewValley/Saves/ - /data/valley_saves:/root/.config/StardewValley/Saves/
devices: devices:
#- /dev/dsp:/dev/dsp
- /dev/snd:/dev/snd - /dev/snd:/dev/snd
entrypoint: entrypoint:
- /bin/sh - /bin/sh
- /init.sh - /init.sh
cpus: 0.5 #cpus: 2
cpuset: '2' #cpuset: 0,1

View File

@ -4,7 +4,6 @@ if [ ! -d /data/Stardew ]; then
echo "Downloading Game" echo "Downloading Game"
mkdir -p /data/Stardew mkdir -p /data/Stardew
mkdir -p /data/nexus
wget https://eris.cc/Stardew_latest.tar -qO /data/latest.tar wget https://eris.cc/Stardew_latest.tar -qO /data/latest.tar
echo "Unpacking" 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 wget https://github.com/Pathoschild/SMAPI/releases/download/2.11.1/SMAPI-2.11.1-installer.zip -qO /data/nexus.zip
echo "Unpacking Modloader" echo "Unpacking Modloader"
unzip nexus.zip -d /data/nexus/ mkdir -p /data/nexus
unzip /data/nexus.zip -d /data/nexus/
echo "Installing Modloader" 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" /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 & Xvfb :10 -screen 0 1000x1000x24 -ac &
export DISPLAY=:10.0 export DISPLAY=:10.0
x11vnc -display :10 -forever -shared -loop & x11vnc -display :10 -forever -shared -loop &
sleep 10
i3 & i3 &
TERM=xterm TERM=xterm

View File

@ -36,6 +36,6 @@ resource "hcloud_server" "game_node" {
} }
working_dir = "." 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},"
} }
} }