|
@@ -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
|
|
@@ -51,32 +51,11 @@ Description=dashy
|
|
Type=simple
|
|
Type=simple
|
|
WorkingDirectory=/dashy
|
|
WorkingDirectory=/dashy
|
|
ExecStart=/usr/bin/yarn start
|
|
ExecStart=/usr/bin/yarn start
|
|
-[Install]
|
|
|
|
-WantedBy=multi-user.target
|
|
|
|
-EOF
|
|
|
|
-
|
|
|
|
-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]
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
WantedBy=multi-user.target
|
|
EOF
|
|
EOF
|
|
systemctl -q --now enable dashy
|
|
systemctl -q --now enable dashy
|
|
-systemctl -q --now enable dashy-rebuild
|
|
|
|
-msg_ok "Created Services"
|
|
|
|
|
|
+msg_ok "Created Service"
|
|
|
|
|
|
motd_ssh
|
|
motd_ssh
|
|
customize
|
|
customize
|