MagicMirror: Fix install process (#6492)

This commit is contained in:
Slaviša Arežina 2025-08-02 17:23:32 +02:00 committed by GitHub
parent 4eaffda82d
commit 158bdfc88e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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 <<EOF >/opt/magicmirror/config/config.js
let config = {