Use headless Hypersomnia image and fix config
This commit is contained in:
parent
61f60bd245
commit
2a0b338d01
|
@ -22,14 +22,14 @@ if [ -e /etc/systemd/system/hypersomnia.service ]; then
|
|||
fi
|
||||
|
||||
mkdir -p /opt/hypersomnia
|
||||
curl --location 'https://hypersomnia.xyz/builds/latest/Hypersomnia.AppImage' > /opt/hypersomnia/Hypersomnia.AppImage
|
||||
chmod +x /opt/hypersomnia/Hypersomnia.AppImage
|
||||
curl --location 'https://hypersomnia.xyz/builds/latest/Hypersomnia-Headless.AppImage' > /opt/hypersomnia/Hypersomnia-Headless.AppImage
|
||||
chmod +x /opt/hypersomnia/Hypersomnia-Headless.AppImage
|
||||
|
||||
mkdir -p /home/${systemuser}/.config/Hypersomnia.old/user/
|
||||
mkdir -p /home/${systemuser}/.config/Hypersomnia/user/
|
||||
chown ${systemuser}: /home/${systemuser}/.config/
|
||||
chown ${systemuser}: -R /home/${systemuser}/.config/Hypersomnia.old
|
||||
chown ${systemuser}: -R /home/${systemuser}/.config/Hypersomnia
|
||||
|
||||
cat > /home/${systemuser}/.config/Hypersomnia.old/user/config.force.lua <<EOF
|
||||
cat > /home/${systemuser}/.config/Hypersomnia/user/config.force.lua <<EOF
|
||||
return {
|
||||
server_start = {
|
||||
port = 8412
|
||||
|
@ -63,7 +63,7 @@ Description=Hypersomnia server
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/opt/hypersomnia/Hypersomnia.AppImage --dedicated-server --sync-external-arenas
|
||||
ExecStart=/opt/hypersomnia/Hypersomnia-Headless.AppImage --dedicated-server --sync-external-arenas
|
||||
Restart=on-failure
|
||||
User=${systemuser}
|
||||
|
||||
|
|
Loading…
Reference in New Issue