print "Installing Z-Bus Interface..." curl -sL https://deb.nodesource.com/setup_15.x | sudo -E bash - sudo apt-get install -y nodejs sudo apt-get install -y git sudo mkdir /opt/z-bus sudo chmod a+rwx /opt/z-bus cd /opt/z-bus # Download wget interface.z-bus.com/dist.zip -O dist.zip unzip -o dist.zip rm dist.zip chmod +x /opt/z-bus/scripts/* # Install dependencies npm install --only=prod # Generate keys if [ ! -d /opt/z-bus/keys ] then mkdir keys node build/setup.js fi # Register as service sudo cp scripts/z-bus.service /lib/systemd/system sudo systemctl daemon-reload sudo systemctl start z-bus sudo systemctl enable z-bus # Register updater sudo cp scripts/z-bus-update.service /lib/systemd/system sudo systemctl daemon-reload sudo systemctl start z-bus-update sudo systemctl enable z-bus-update