Update readeck.sh

create update path
pull/2460/head
tteckster 10 months ago committed by GitHub
parent 47bc910e8f
commit ee3b69fffe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -55,7 +55,16 @@ function default_settings() {
function update_script() { function update_script() {
header_info header_info
if [[ ! -d /opt/readeck ]]; then msg_error "No ${APP} Installation Found!"; exit; fi if [[ ! -d /opt/readeck ]]; then msg_error "No ${APP} Installation Found!"; exit; fi
msg_error "There is currently no update path available." msg_info "Updating ${APP}"
LATEST=$(curl -s https://codeberg.org/readeck/readeck/releases/ | grep -oP '(?<=Version )\d+\.\d+\.\d+' | head -1
)
systemctl stop readeck.service
rm -rf /opt/readeck/readeck
cd /opt/readeck
wget -q -O readeck https://codeberg.org/readeck/readeck/releases/download/${LATEST}/readeck-${LATEST}-linux-amd64
chmod a+x readeck
systemctl start readeck.service
msg_ok "Updated ${APP}"
exit exit
} }

Loading…
Cancel
Save

Powered by BW's shoe-string budget.