forked from forkanization/Proxmox-arm64
Update duplicati-install.sh
This commit is contained in:
@@ -22,8 +22,8 @@ msg_ok "Installed Dependencies"
|
|||||||
|
|
||||||
msg_info "Setting up Duplicati"
|
msg_info "Setting up Duplicati"
|
||||||
RELEASE=$(curl -fsSL https://api.github.com/repos/duplicati/duplicati/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
|
RELEASE=$(curl -fsSL https://api.github.com/repos/duplicati/duplicati/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4)}')
|
||||||
curl -fsSL "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb" -o $(basename "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-x64-gui.deb")
|
curl -fsSL "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-arm64-gui.deb" -o $(basename "https://github.com/duplicati/duplicati/releases/download/v${RELEASE}/duplicati-${RELEASE}-linux-arm64-gui.deb")
|
||||||
$STD dpkg -i duplicati-${RELEASE}-linux-x64-gui.deb
|
$STD dpkg -i duplicati-${RELEASE}-linux-arm64-gui.deb
|
||||||
echo "${RELEASE}" >/opt/Duplicati_version.txt
|
echo "${RELEASE}" >/opt/Duplicati_version.txt
|
||||||
msg_ok "Finished setting up Duplicati"
|
msg_ok "Finished setting up Duplicati"
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ motd_ssh
|
|||||||
customize
|
customize
|
||||||
|
|
||||||
msg_info "Cleaning up"
|
msg_info "Cleaning up"
|
||||||
rm -f duplicati-${RELEASE}-linux-x64-gui.deb
|
rm -f duplicati-${RELEASE}-linux-arm64-gui.deb
|
||||||
$STD apt-get -y autoremove
|
$STD apt-get -y autoremove
|
||||||
$STD apt-get -y autoclean
|
$STD apt-get -y autoclean
|
||||||
msg_ok "Cleaned"
|
msg_ok "Cleaned"
|
||||||
|
|||||||
Reference in New Issue
Block a user