mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-03-08 13:19:05 +00:00
fix: update function now backs up index and config (#2845)
This commit is contained in:
parent
cf2f7a9af5
commit
043baf299a
@ -39,10 +39,13 @@ function update_script() {
|
|||||||
wget -q "https://github.com/hakimel/reveal.js/archive/refs/tags/${RELEASE}.tar.gz" -O $temp_file
|
wget -q "https://github.com/hakimel/reveal.js/archive/refs/tags/${RELEASE}.tar.gz" -O $temp_file
|
||||||
tar zxf $temp_file
|
tar zxf $temp_file
|
||||||
rm -rf /opt/revealjs/node_modules/*
|
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
|
cp -rf reveal.js-${RELEASE}/* /opt/revealjs
|
||||||
cd /opt/revealjs
|
cd /opt/revealjs
|
||||||
$STD npm install
|
$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
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
msg_ok "Updated $APP to ${RELEASE}"
|
msg_ok "Updated $APP to ${RELEASE}"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user