mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
4da3ef9bfd
...
f796767e06
Author | SHA1 | Date |
---|---|---|
|
f796767e06 | |
|
7add9d891d | |
|
80ad523a24 |
|
@ -42,7 +42,7 @@ export NODE_OPTIONS=--max-old-space-size=1000
|
||||||
$STD yarn build
|
$STD yarn build
|
||||||
msg_ok "Installed Dashy"
|
msg_ok "Installed Dashy"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Services"
|
||||||
cat <<EOF >/etc/systemd/system/dashy.service
|
cat <<EOF >/etc/systemd/system/dashy.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=dashy
|
Description=dashy
|
||||||
|
@ -54,9 +54,29 @@ ExecStart=/usr/bin/yarn start
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
$STD systemctl enable dashy
|
|
||||||
systemctl start dashy
|
cat <<EOF >/etc/systemd/system/dashy-rebuild.service
|
||||||
msg_ok "Created Service"
|
[Unit]
|
||||||
|
Description=Rebuild Dashy on Config Changes
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/yarn --cwd=/dashy build
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cat <<EOF >/etc/systemd/system/dashy-rebuild.path
|
||||||
|
[Unit]
|
||||||
|
Description=Monitor Dashy Config for Changes
|
||||||
|
|
||||||
|
[Path]
|
||||||
|
PathChanged=/dashy/public/conf.yml
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
EOF
|
||||||
|
systemctl -q --now enable dashy
|
||||||
|
systemctl -q --now enable dashy-rebuild
|
||||||
|
msg_ok "Created Services"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
customize
|
customize
|
||||||
|
|
|
@ -22,6 +22,12 @@ msg_ok "Installed Dependencies"
|
||||||
msg_info "Installing Mosquitto MQTT Broker"
|
msg_info "Installing Mosquitto MQTT Broker"
|
||||||
$STD apt-get -y install mosquitto
|
$STD apt-get -y install mosquitto
|
||||||
$STD apt-get -y install mosquitto-clients
|
$STD apt-get -y install mosquitto-clients
|
||||||
|
cat <<EOF >/etc/mosquitto/conf.d/default.conf
|
||||||
|
allow_anonymous false
|
||||||
|
persistence true
|
||||||
|
password_file /etc/mosquitto/passwd
|
||||||
|
listener 1883
|
||||||
|
EOF
|
||||||
msg_ok "Installed Mosquitto MQTT Broker"
|
msg_ok "Installed Mosquitto MQTT Broker"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
|
Loading…
Reference in New Issue