mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-26 16:43:17 +01:00
Update dashy-install.sh
tweak
This commit is contained in:
parent
80ad523a24
commit
7add9d891d
@ -54,10 +54,8 @@ 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 > /etc/systemd/system/dashy-rebuild.service << EOF
|
cat <<EOF >/etc/systemd/system/dashy-rebuild.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Rebuild Dashy on Config Changes
|
Description=Rebuild Dashy on Config Changes
|
||||||
|
|
||||||
@ -66,7 +64,7 @@ Type=oneshot
|
|||||||
ExecStart=/usr/bin/yarn --cwd=/dashy build
|
ExecStart=/usr/bin/yarn --cwd=/dashy build
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/systemd/system/dashy-rebuild.path << EOF
|
cat <<EOF >/etc/systemd/system/dashy-rebuild.path
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Monitor Dashy Config for Changes
|
Description=Monitor Dashy Config for Changes
|
||||||
|
|
||||||
@ -76,9 +74,8 @@ PathChanged=/dashy/public/conf.yml
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
systemctl -q --now enable dashy
|
||||||
$STD systemctl enable dashy-rebuild
|
systemctl -q --now enable dashy-rebuild
|
||||||
systemctl start dashy-rebuild
|
|
||||||
msg_ok "Created Services"
|
msg_ok "Created Services"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user