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
|
||||
msg_ok "Installed Dashy"
|
||||
|
||||
msg_info "Creating Service"
|
||||
msg_info "Creating Services"
|
||||
cat <<EOF >/etc/systemd/system/dashy.service
|
||||
[Unit]
|
||||
Description=dashy
|
||||
|
@ -54,9 +54,29 @@ ExecStart=/usr/bin/yarn start
|
|||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
$STD systemctl enable dashy
|
||||
systemctl start dashy
|
||||
msg_ok "Created Service"
|
||||
|
||||
cat <<EOF >/etc/systemd/system/dashy-rebuild.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
|
||||
customize
|
||||
|
|
|
@ -22,6 +22,12 @@ msg_ok "Installed Dependencies"
|
|||
msg_info "Installing Mosquitto MQTT Broker"
|
||||
$STD apt-get -y install mosquitto
|
||||
$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"
|
||||
|
||||
motd_ssh
|
||||
|
|
Loading…
Reference in New Issue