diff --git a/ct/revealjs.sh b/ct/revealjs.sh index 462434c6a..bc9a237a1 100644 --- a/ct/revealjs.sh +++ b/ct/revealjs.sh @@ -40,7 +40,7 @@ function update_script() { cd /opt/revealjs $STD npm install cp -f /opt/index.html /opt/revealjs - sed -i '25s/localhost/0.0.0.0/g' /opt/revealjs/gulpfile.js + sed -i 's/"vite"/"vite --host"/g' package.json rm -f /opt/index.html msg_ok "Updated RevealJS" diff --git a/install/revealjs-install.sh b/install/revealjs-install.sh index 7cf265924..a78327999 100644 --- a/install/revealjs-install.sh +++ b/install/revealjs-install.sh @@ -19,7 +19,7 @@ fetch_and_deploy_gh_release "revealjs" "hakimel/reveal.js" "tarball" msg_info "Configuring ${APPLICATION}" cd /opt/revealjs $STD npm install -sed -i '25s/localhost/0.0.0.0/g' /opt/revealjs/gulpfile.js +sed -i 's/"vite"/"vite --host"/g' package.json msg_ok "Setup ${APPLICATION}" msg_info "Creating Service"