mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-10 19:05:09 +00:00
Update location of currently installed version for ps5-mqtt script
This commit is contained in:
parent
62b9e845a8
commit
447357f562
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user