diff --git a/ct/magicmirror.sh b/ct/magicmirror.sh index a9676834c..60c567390 100644 --- a/ct/magicmirror.sh +++ b/ct/magicmirror.sh @@ -51,6 +51,7 @@ function update_script() { msg_info "Configuring MagicMirror" cd /opt/magicmirror + sed -i -E 's/("postinstall": )".*"/\1""/; s/("prepare": )".*"/\1""/' package.json $STD npm run install-mm cp /opt/magicmirror-backup/config.js /opt/magicmirror/config/ if [[ -f /opt/magicmirror-backup/custom.css ]]; then diff --git a/install/magicmirror-install.sh b/install/magicmirror-install.sh index 69c4a0da3..7f88e8057 100644 --- a/install/magicmirror-install.sh +++ b/install/magicmirror-install.sh @@ -13,15 +13,12 @@ setting_up_container network_check update_os -msg_info "Setup Dependencies" -$STD apt-get install -y git -msg_ok "Setup Dependencies" - NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "magicmirror" "MagicMirrorOrg/MagicMirror" "tarball" msg_info "Configuring MagicMirror" cd /opt/magicmirror +sed -i -E 's/("postinstall": )".*"/\1""/; s/("prepare": )".*"/\1""/' package.json $STD npm run install-mm cat </opt/magicmirror/config/config.js let config = {