diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..2d95146 --- /dev/null +++ b/update.sh @@ -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 \ No newline at end of file