mirror of https://github.com/tteck/Proxmox.git
Compare commits
2 Commits
48f5906246
...
03ea3fb8dd
Author | SHA1 | Date |
---|---|---|
|
03ea3fb8dd | |
|
26230754af |
12
ct/homarr.sh
12
ct/homarr.sh
|
@ -55,13 +55,15 @@ header_info
|
||||||
if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
|
||||||
msg_info "Updating $APP (Patience)"
|
msg_info "Updating $APP (Patience)"
|
||||||
systemctl stop homarr
|
systemctl stop homarr
|
||||||
cp -Rf /opt/homarr/data /opt/homarr/data-backup
|
rm -rf /root/data-homarr-backup
|
||||||
cp -Rf /opt/homarr/database /opt/homarr/data-backup
|
rm -rf /root/database-homarr-backup
|
||||||
|
cp -R /opt/homarr/data /root/data-homarr-backup
|
||||||
|
cp -R /opt/homarr/database /root/database-homarr-backup
|
||||||
RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/ajnart/homarr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
wget -q -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt
|
wget -q -O- https://github.com/ajnart/homarr/archive/refs/tags/v${RELEASE}.tar.gz | tar -xz -C /opt
|
||||||
cp -Rf /opt/homarr-${RELEASE}/* /opt/homarr/
|
cp -R /root/data-homarr-backup/* /opt/homarr/data
|
||||||
cp -Rf /opt/homarr/data-backup/* /opt/homarr/
|
cp -R /root/database-homarr-backup/* /opt/homarr/database
|
||||||
rm -rf /opt/homarr-${RELEASE} /opt/homarr/data-backup
|
rm -rf /opt/homarr-${RELEASE}
|
||||||
cd /opt/homarr
|
cd /opt/homarr
|
||||||
yarn install &>/dev/null
|
yarn install &>/dev/null
|
||||||
yarn build &>/dev/null
|
yarn build &>/dev/null
|
||||||
|
|
|
@ -29,6 +29,7 @@ $STD apt-get install -y \
|
||||||
msg_ok "Updated Python3"
|
msg_ok "Updated Python3"
|
||||||
|
|
||||||
msg_info "Installing ESPHome"
|
msg_info "Installing ESPHome"
|
||||||
|
mkdir /root/config
|
||||||
$STD pip install esphome tornado esptool
|
$STD pip install esphome tornado esptool
|
||||||
msg_ok "Installed ESPHome"
|
msg_ok "Installed ESPHome"
|
||||||
|
|
||||||
|
@ -39,7 +40,7 @@ Description=ESPHome Dashboard
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/local/bin/esphome dashboard /root/.config/
|
ExecStart=/usr/local/bin/esphome dashboard /root/config/
|
||||||
Restart=always
|
Restart=always
|
||||||
User=root
|
User=root
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue