mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-02-06 07:49:17 +00:00
Compare commits
1 Commits
f95dffabfe
...
fabd77717f
Author | SHA1 | Date | |
---|---|---|---|
|
fabd77717f |
13
CHANGELOG.md
13
CHANGELOG.md
@ -16,19 +16,6 @@ All LXC instances created using this repository come pre-installed with Midnight
|
|||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
Do not break established syntax in this file, as it is automatically updated by a Github Workflow
|
Do not break established syntax in this file, as it is automatically updated by a Github Workflow
|
||||||
|
|
||||||
## 2024-11-28
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
### 🚀 Updated Scripts
|
|
||||||
|
|
||||||
- Remove changing DISK_REF for zfspool mikrotik-routeros.sh [@tjcomserv](https://github.com/tjcomserv) ([#529](https://github.com/community-scripts/ProxmoxVE/pull/529))
|
|
||||||
- Fix Z-Wave JS UI script [@MickLesk](https://github.com/MickLesk) ([#546](https://github.com/community-scripts/ProxmoxVE/pull/546))
|
|
||||||
|
|
||||||
### 🌐 Website
|
|
||||||
|
|
||||||
- Show Changelog on Mobile Devices [@MickLesk](https://github.com/MickLesk) ([#558](https://github.com/community-scripts/ProxmoxVE/pull/558))
|
|
||||||
|
|
||||||
## 2024-11-27
|
## 2024-11-27
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
@ -56,27 +56,38 @@ function update_script() {
|
|||||||
header_info
|
header_info
|
||||||
check_container_storage
|
check_container_storage
|
||||||
check_container_resources
|
check_container_resources
|
||||||
if [[ ! -d /opt/zwave-js-ui ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/zwave-js-ui ]]; then
|
||||||
|
msg_error "No ${APP} Installation Found!"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then
|
msg_info "Stopping Z-wave JS UI"
|
||||||
msg_info "Stopping Service"
|
systemctl stop zwave-js-ui.service
|
||||||
systemctl stop zwave-js-ui
|
msg_ok "Stopped Z-wave JS UI"
|
||||||
msg_ok "Stopped Service"
|
|
||||||
|
|
||||||
msg_info "Updating Z-Wave JS UI"
|
msg_info "Updating Z-wave JS UI"
|
||||||
rm -rf /opt/zwave-js-ui/*
|
wget https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
|
||||||
cd /opt/zwave-js-ui
|
unzip zwave-js-ui-${RELEASE}-linux.zip &>/dev/null
|
||||||
wget -q https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip
|
\cp -R zwave-js-ui-linux /opt/zwave-js-ui
|
||||||
unzip -q zwave-js-ui-${RELEASE}-linux.zip
|
service_path="/etc/systemd/system/zwave-js-ui.service"
|
||||||
msg_ok "Updated Z-Wave JS UI"
|
echo "[Unit]
|
||||||
|
Description=zwave-js-ui
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
[Service]
|
||||||
|
User=root
|
||||||
|
WorkingDirectory=/opt/zwave-js-ui
|
||||||
|
ExecStart=/opt/zwave-js-ui/zwave-js-ui-linux
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target" >$service_path
|
||||||
|
msg_ok "Updated Z-wave JS UI"
|
||||||
|
|
||||||
msg_info "Starting Service"
|
msg_info "Starting Z-wave JS UI"
|
||||||
systemctl start zwave-js-ui
|
systemctl enable --now zwave-js-ui.service
|
||||||
msg_ok "Started Service"
|
msg_ok "Started Z-wave JS UI"
|
||||||
|
|
||||||
msg_info "Cleanup"
|
msg_info "Cleanup"
|
||||||
rm -rf /opt/zwave-js-ui/zwave-js-ui-${RELEASE}-linux.zip
|
rm -rf zwave-js-ui-${RELEASE}-linux.zip zwave-js-ui-linux store
|
||||||
rm -rf /opt/zwave-js-ui/store
|
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
msg_ok "Updated Successfully!\n"
|
msg_ok "Updated Successfully!\n"
|
||||||
exit
|
exit
|
||||||
|
@ -20,7 +20,7 @@ export const navbarLinks = [
|
|||||||
{
|
{
|
||||||
href: `https://github.com/community-scripts/${basePath}/blob/main/CHANGELOG.md`,
|
href: `https://github.com/community-scripts/${basePath}/blob/main/CHANGELOG.md`,
|
||||||
event: "Change Log",
|
event: "Change Log",
|
||||||
icon: <Scroll className="h-4 w-4" />,
|
icon: <Scroll className="h-4 w-4 hidden sm:block" />,
|
||||||
text: "Change Log",
|
text: "Change Log",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -14,43 +14,33 @@ network_check
|
|||||||
update_os
|
update_os
|
||||||
|
|
||||||
msg_info "Installing Dependencies"
|
msg_info "Installing Dependencies"
|
||||||
$STD apt-get install -y \
|
$STD apt-get install -y curl
|
||||||
curl \
|
$STD apt-get install -y sudo
|
||||||
sudo \
|
$STD apt-get install -y mc
|
||||||
mc
|
|
||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Z-Wave JS UI"
|
msg_info "Installing Z-Wave JS UI"
|
||||||
mkdir -p /opt/zwave-js-ui
|
mkdir /opt/zwave-js-ui
|
||||||
mkdir -p /opt/zwave_store
|
|
||||||
cd /opt/zwave-js-ui
|
cd /opt/zwave-js-ui
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
RELEASE=$(curl -s https://api.github.com/repos/zwave-js/zwave-js-ui/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
|
||||||
wget -q https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip
|
$STD wget https://github.com/zwave-js/zwave-js-ui/releases/download/${RELEASE}/zwave-js-ui-${RELEASE}-linux.zip
|
||||||
unzip -q zwave-js-ui-${RELEASE}-linux.zip
|
$STD unzip zwave-js-ui-${RELEASE}-linux.zip
|
||||||
cat <<EOF >/opt/.env
|
|
||||||
ZWAVEJS_EXTERNAL_CONFIG=/opt/zwave_store/.config-db
|
|
||||||
STORE_DIR=/opt/zwave_store
|
|
||||||
EOF
|
|
||||||
echo "${RELEASE}" >"/opt/${APPLICATION}_version.txt"
|
|
||||||
msg_ok "Installed Z-Wave JS UI"
|
msg_ok "Installed Z-Wave JS UI"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF > /etc/systemd/system/zwave-js-ui.service
|
service_path="/etc/systemd/system/zwave-js-ui.service"
|
||||||
[Unit]
|
echo "[Unit]
|
||||||
Description=zwave-js-ui
|
Description=zwave-js-ui
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory=/opt/zwave-js-ui
|
WorkingDirectory=/opt/zwave-js-ui
|
||||||
ExecStart=/opt/zwave-js-ui/zwave-js-ui-linux
|
ExecStart=/opt/zwave-js-ui/zwave-js-ui-linux
|
||||||
EnvironmentFile=/opt/.env
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target" >$service_path
|
||||||
EOF
|
systemctl start zwave-js-ui
|
||||||
systemctl enable -q --now zwave-js-ui
|
$STD systemctl enable zwave-js-ui
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
"updateable": true,
|
"updateable": true,
|
||||||
"privileged": true,
|
"privileged": true,
|
||||||
"interface_port": "8091",
|
"interface_port": "8091",
|
||||||
"documentation": "https://zwave-js.github.io/zwave-js-ui/#/",
|
"documentation": null,
|
||||||
"website": "https://github.com/zwave-js/zwave-js-ui#",
|
"website": "https://github.com/zwave-js/zwave-js-ui#",
|
||||||
"logo": "https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/assets/zwave.svg",
|
"logo": "https://raw.githubusercontent.com/loganmarchione/homelab-svg-assets/main/assets/zwave.svg",
|
||||||
"description": "Z-Wave JS UI is an open-source software that serves as a gateway between Z-Wave devices and MQTT (Message Queuing Telemetry Transport) protocol, allowing users to control and monitor their Z-Wave devices via a user interface. The software provides a configurable platform to manage Z-Wave networks and integrate with other smart home systems through MQTT.",
|
"description": "Z-Wave JS UI is an open-source software that serves as a gateway between Z-Wave devices and MQTT (Message Queuing Telemetry Transport) protocol, allowing users to control and monitor their Z-Wave devices via a user interface. The software provides a configurable platform to manage Z-Wave networks and integrate with other smart home systems through MQTT.",
|
||||||
|
@ -251,14 +251,9 @@ nfs | dir)
|
|||||||
DISK_REF="$VMID/"
|
DISK_REF="$VMID/"
|
||||||
DISK_IMPORT="-format qcow2"
|
DISK_IMPORT="-format qcow2"
|
||||||
;;
|
;;
|
||||||
btrfs)
|
btrfs | zfspool)
|
||||||
DISK_EXT=".raw"
|
|
||||||
DISK_REF="$VMID/"
|
|
||||||
DISK_IMPORT="-format raw"
|
|
||||||
;;
|
|
||||||
zfspool)
|
|
||||||
DISK_EXT=""
|
DISK_EXT=""
|
||||||
DISK_REF=""
|
DISK_REF="$VMID/"
|
||||||
DISK_IMPORT="-format raw"
|
DISK_IMPORT="-format raw"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user