Skip to content

Commit

Permalink
add updatescript
Browse files Browse the repository at this point in the history
add update script (first version)
usage:
sudo chmod +x update.sh
sudo ./update.sh
  • Loading branch information
reserve85 authored Mar 12, 2024
1 parent 6da3a2b commit f022ce9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

wget https://github.com/reserve85/HoymilesZeroExport/archive/refs/heads/main.zip
unzip main.zip
rm main.zip

if [ $(dpkg-query -W -f='${Status}' rsync 2>/dev/null | grep -c "ok installed") -eq 0 ];
then
apt-get install rsync;
fi

rsync -a HoymilesZeroExport-main/ ./
rm -r HoymilesZeroExport-main/

chmod +x install.sh

./install.sh
./restart.sh

0 comments on commit f022ce9

Please sign in to comment.