mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-25 10:06:18 +00:00
Remove superfluous empty lines in ps5-mqtt install script
This commit is contained in:
parent
44c9b4e599
commit
664f28a4cb
@ -21,28 +21,22 @@ $STD apt-get install -y \
|
|||||||
jq \
|
jq \
|
||||||
nodejs \
|
nodejs \
|
||||||
npm
|
npm
|
||||||
|
|
||||||
$STD npm i -g playactor
|
$STD npm i -g playactor
|
||||||
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/FunkeyFlo/ps5-mqtt/releases/latest | jq -r '.tag_name')
|
RELEASE=$(curl -s https://api.github.com/repos/FunkeyFlo/ps5-mqtt/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
msg_info "Installing PS5-MQTT"
|
msg_info "Installing PS5-MQTT"
|
||||||
wget -q https://github.com/FunkeyFlo/ps5-mqtt/archive/refs/tags/${RELEASE}.tar.gz
|
wget -q https://github.com/FunkeyFlo/ps5-mqtt/archive/refs/tags/${RELEASE}.tar.gz
|
||||||
|
|
||||||
tar zxf ${RELEASE}.tar.gz
|
tar zxf ${RELEASE}.tar.gz
|
||||||
|
|
||||||
mv ps5-mqtt-* /opt/ps5-mqtt
|
mv ps5-mqtt-* /opt/ps5-mqtt
|
||||||
echo ${RELEASE} > /opt/ps5-mqtt_version.txt
|
echo ${RELEASE} > /opt/ps5-mqtt_version.txt
|
||||||
|
|
||||||
cd /opt/ps5-mqtt/ps5-mqtt/
|
cd /opt/ps5-mqtt/ps5-mqtt/
|
||||||
$STD npm install
|
$STD npm install
|
||||||
$STD npm run build
|
$STD npm run build
|
||||||
msg_ok "Installed PS5-MQTT"
|
msg_ok "Installed PS5-MQTT"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
|
|
||||||
mkdir -p /root/.config/ps5-mqtt
|
mkdir -p /root/.config/ps5-mqtt
|
||||||
mkdir -p /root/.config/playactor
|
mkdir -p /root/.config/playactor
|
||||||
cat <<EOF > /root/.config/ps5-mqtt/config.json
|
cat <<EOF > /root/.config/ps5-mqtt/config.json
|
||||||
@ -74,7 +68,6 @@ cat <<EOF > /root/.config/ps5-mqtt/config.json
|
|||||||
"frontendPort": "8645"
|
"frontendPort": "8645"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/ps5-mqtt.service
|
cat <<EOF >/etc/systemd/system/ps5-mqtt.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=PS5-MQTT Daemon
|
Description=PS5-MQTT Daemon
|
||||||
|
Loading…
Reference in New Issue
Block a user