Compare commits

..

No commits in common. "03ea3fb8dd83749c73e09b1711d43c35e55840e3" and "48f59062462c0470d6b2027a228487bbd5d738e1" have entirely different histories.

2 changed files with 6 additions and 9 deletions

View File

@ -55,15 +55,13 @@ header_info
if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_info "Updating $APP (Patience)"
systemctl stop homarr
rm -rf /root/data-homarr-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
cp -Rf /opt/homarr/data /opt/homarr/data-backup
cp -Rf /opt/homarr/database /opt/homarr/data-backup
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
cp -R /root/data-homarr-backup/* /opt/homarr/data
cp -R /root/database-homarr-backup/* /opt/homarr/database
rm -rf /opt/homarr-${RELEASE}
cp -Rf /opt/homarr-${RELEASE}/* /opt/homarr/
cp -Rf /opt/homarr/data-backup/* /opt/homarr/
rm -rf /opt/homarr-${RELEASE} /opt/homarr/data-backup
cd /opt/homarr
yarn install &>/dev/null
yarn build &>/dev/null

View File

@ -29,7 +29,6 @@ $STD apt-get install -y \
msg_ok "Updated Python3"
msg_info "Installing ESPHome"
mkdir /root/config
$STD pip install esphome tornado esptool
msg_ok "Installed ESPHome"
@ -40,7 +39,7 @@ Description=ESPHome Dashboard
After=network.target
[Service]
ExecStart=/usr/local/bin/esphome dashboard /root/config/
ExecStart=/usr/local/bin/esphome dashboard /root/.config/
Restart=always
User=root