From 043baf299a1aac993762b2653331988ddc1754e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 4 Mar 2025 21:44:20 +0100 Subject: [PATCH] fix: update function now backs up index and config (#2845) --- ct/revealjs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ct/revealjs.sh b/ct/revealjs.sh index 4bb29497d..b9bebeb55 100644 --- a/ct/revealjs.sh +++ b/ct/revealjs.sh @@ -39,10 +39,13 @@ function update_script() { wget -q "https://github.com/hakimel/reveal.js/archive/refs/tags/${RELEASE}.tar.gz" -O $temp_file tar zxf $temp_file rm -rf /opt/revealjs/node_modules/* + cp /opt/revealjs/index.html /opt + cp /opt/revealjs/gulpfile.js /opt cp -rf reveal.js-${RELEASE}/* /opt/revealjs cd /opt/revealjs $STD npm install - sed -i '25s/localhost/0.0.0.0/g' /opt/revealjs/gulpfile.js + cp -f /opt/index.html /opt/revealjs + cp -f /opt/gulpfile.js /opt/revealjs echo "${RELEASE}" >/opt/${APP}_version.txt msg_ok "Updated $APP to ${RELEASE}"