mirror of https://github.com/tteck/Proxmox.git
Compare commits
No commits in common. "f796767e06dbe7d89a6d3a877dab106fb27dc238" and "4da3ef9bfda42be39d7e49f0c4d0e56272faabb1" have entirely different histories.
f796767e06
...
4da3ef9bfd
|
@ -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 Services"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/dashy.service
|
cat <<EOF >/etc/systemd/system/dashy.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=dashy
|
Description=dashy
|
||||||
|
@ -54,29 +54,9 @@ ExecStart=/usr/bin/yarn start
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
$STD systemctl enable dashy
|
||||||
cat <<EOF >/etc/systemd/system/dashy-rebuild.service
|
systemctl start dashy
|
||||||
[Unit]
|
msg_ok "Created Service"
|
||||||
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,12 +22,6 @@ 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