Update location of currently installed version for ps5-mqtt script

This commit is contained in:
liecno 2025-01-03 19:48:25 +01:00
parent 62b9e845a8
commit 447357f562
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ function update_script() {
check_container_storage
check_container_resources
if [[ "${RELEASE}" != "$(cat /opt/ps5-mqtt/cs_release)" ]]; then
if [[ "${RELEASE}" != "$(cat /opt/ps5-mqtt_version.txt)" ]]; then
msg_info "Stopping service"
systemctl stop ps5-mqtt.service
msg_ok "Stopped service"
@ -48,7 +48,7 @@ function update_script() {
rm -rf /opt/ps5-mqtt
mv ps5-mqtt-* /opt/ps5-mqtt
rm ${RELEASE}.tar.gz
echo ${RELEASE} > /opt/ps5-mqtt/cs_release
echo ${RELEASE} > /opt/ps5-mqtt_version.txt
msg_ok "Updated PS5-MQTT"
msg_info "Building new PS5-MQTT version"

View File

@ -35,7 +35,7 @@ wget -q https://github.com/FunkeyFlo/ps5-mqtt/archive/refs/tags/${RELEASE}.tar.g
tar zxf ${RELEASE}.tar.gz
mv ps5-mqtt-* /opt/ps5-mqtt
echo ${RELEASE} > /opt/ps5-mqtt/cs_release
echo ${RELEASE} > /opt/ps5-mqtt_version.txt
cd /opt/ps5-mqtt/ps5-mqtt/
$STD npm install