Update ps5-mqtt-install.sh

This commit is contained in:
Michel Roegl-Brunner 2025-01-09 16:12:51 +01:00
parent 8365af6f66
commit 480e9d3e64

View File

@ -36,9 +36,9 @@ echo ${RELEASE} > /opt/ps5-mqtt_version.txt
msg_ok "Installed PS5-MQTT"
msg_info "Creating Service"
mkdir -p /opt/ps5-mqtt/.config/ps5-mqtt
mkdir -p /opt/ps5-mqtt/.config/
mkdir -p /opt/ps5-mqtt/.config/playactor
cat <<EOF > /opt/ps5-mqtt/.config/ps5-mqtt/config.json
cat <<EOF > /opt/ps5-mqtt/.config/config.json
{
"mqtt": {
"host": "",
@ -63,7 +63,7 @@ cat <<EOF > /opt/ps5-mqtt/.config/ps5-mqtt/config.json
"account_check_interval": 5000,
"credentialsStoragePath": "/opt/ps5-mqtt/.config/ps5-mqtt/credentials.json",
"credentialsStoragePath": "/opt/ps5-mqtt/.config/credentials.json",
"frontendPort": "8645"
}
EOF
@ -74,7 +74,7 @@ After=syslog.target network.target
[Service]
WorkingDirectory=/opt/ps5-mqtt/ps5-mqtt
Environment="CONFIG_PATH=/opt/ps5-mqtt/.config/ps5-mqtt/config.json"
Environment="CONFIG_PATH=/opt/ps5-mqtt/.config/config.json"
Environment="DEBUG='@ha:ps5:*'"
Restart=always
RestartSec=5