@@ -20,23 +20,23 @@ color
2020catch_errors
2121
2222function update_script() {
23- header_info
24- check_container_storage
25- check_container_resources
26- if [[ ! -d /opt/readeck ]]; then
27- msg_error " No ${APP} Installation Found!"
28- exit
29- fi
30- msg_info " Updating ${APP} "
31- LATEST=$( curl -fsSL https://codeberg.org/readeck/readeck/releases/ | grep -oP ' (?<=Version )\d+\.\d+\.\d+' | head -1)
32- systemctl stop readeck.service
33- rm -rf /opt/readeck/readeck
34- cd /opt/readeck
35- curl -fsSL " https://codeberg.org/readeck/readeck/releases/download/${LATEST} /readeck-${LATEST} -linux-amd64" -o " readeck"
36- chmod a+x readeck
37- systemctl start readeck.service
38- msg_ok " Updated ${APP} "
23+ header_info
24+ check_container_storage
25+ check_container_resources
26+ if [[ ! -d /opt/readeck ]]; then
27+ msg_error " No ${APP} Installation Found!"
3928 exit
29+ fi
30+ msg_info " Updating ${APP} "
31+ LATEST=$( curl -fsSL https://codeberg.org/readeck/readeck/releases/ | grep -oP ' /releases/tag/\K\d+\.\d+\.\d+' | head -1)
32+ systemctl stop readeck.service
33+ rm -rf /opt/readeck/readeck
34+ cd /opt/readeck
35+ curl -fsSL " https://codeberg.org/readeck/readeck/releases/download/${LATEST} /readeck-${LATEST} -linux-amd64" -o " readeck"
36+ chmod a+x readeck
37+ systemctl start readeck.service
38+ msg_ok " Updated ${APP} "
39+ exit
4040}
4141
4242start
@@ -46,4 +46,4 @@ description
4646msg_ok " Completed Successfully!\n"
4747echo -e " ${CREATING}${GN}${APP} setup has been successfully initialized!${CL} "
4848echo -e " ${INFO}${YW} Access it using the following URL:${CL} "
49- echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :8000${CL} "
49+ echo -e " ${TAB}${GATEWAY}${BGN} http://${IP} :8000${CL} "
0 commit comments