update install scripts
This commit is contained in:
parent
12f4ce9657
commit
8efc808af2
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# It isn't enough to modify this yet.
|
# It isn't enough to modify this yet.
|
||||||
# You also need to manually update the nose-pluto.service file.
|
# You also need to manually update the nose-pluto.service file.
|
||||||
HOST="${HOST:-chris@nose-pluto.local}"
|
HOST="${HOST:-nose@nose-pluto.local}"
|
||||||
DEST="${DEST:-~/pluto}"
|
DEST="${DEST:-~/nose}"
|
||||||
REPO="${REPO:-https://git.nose.space/defunkt/nose-pluto}"
|
REPO="${REPO:-https://git.nose.space/defunkt/nose-pluto}"
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
##
|
|
||||||
# deploys to your NOSEputer from git
|
|
||||||
|
|
||||||
source ./app/scripts/config.sh
|
source ./app/scripts/config.sh
|
||||||
|
|
||||||
ssh $HOST "cd $DEST && git pull && bun install && sudo systemctl restart nose-pluto.service"
|
ssh $HOST "cd $DEST && git pull && bun install && sudo systemctl restart nose-pluto.service"
|
||||||
|
|
@ -45,5 +45,12 @@ sudo systemctl enable "$SERVICE_NAME"
|
||||||
echo ">> Starting (or restarting) $SERVICE_NAME"
|
echo ">> Starting (or restarting) $SERVICE_NAME"
|
||||||
sudo systemctl restart "$SERVICE_NAME"
|
sudo systemctl restart "$SERVICE_NAME"
|
||||||
|
|
||||||
echo ">> Done!"
|
echo ">> Enabling kiosk mode"
|
||||||
|
mkdir -p ~/.config/labwc
|
||||||
|
cat > ~/.config/labwc/autostart <<'EOF'
|
||||||
|
chromium-browser --noerrdialogs --disable-infobars --kiosk http://localhost
|
||||||
|
EOF
|
||||||
|
|
||||||
|
echo ">> Done! Rebooting!"
|
||||||
systemctl status "$SERVICE_NAME" --no-pager -l
|
systemctl status "$SERVICE_NAME" --no-pager -l
|
||||||
|
sudo reboot
|
||||||
|
|
|
||||||
|
|
@ -4,11 +4,11 @@ After=network-online.target
|
||||||
Wants=network-online.target
|
Wants=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=chris
|
User=nose
|
||||||
WorkingDirectory=/home/chris/pluto/app
|
WorkingDirectory=/home/nose/nose/app
|
||||||
Environment=PORT=80
|
Environment=PORT=80
|
||||||
Environment=NODE_ENV=production
|
Environment=NODE_ENV=production
|
||||||
ExecStart=/home/chris/.bun/bin/bun start
|
ExecStart=/home/nose/.bun/bin/bun start
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=2
|
RestartSec=2
|
||||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
##
|
|
||||||
# setup your NOSEputer from your dev machine
|
|
||||||
|
|
||||||
source ./app/scripts/config.sh
|
source ./app/scripts/config.sh
|
||||||
|
|
||||||
ssh $HOST "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"
|
ssh $HOST "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service"
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ssh chris@nose-pluto.local "sudo systemctl restart nose-pluto.service"
|
source ./app/scripts/config.sh
|
||||||
|
ssh $HOST "sudo systemctl restart nose-pluto.service"
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ssh chris@nose-pluto.local "sudo systemctl start nose-pluto.service"
|
source ./app/scripts/config.sh
|
||||||
|
ssh $HOST "sudo systemctl start nose-pluto.service"
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
ssh chris@nose-pluto.local "sudo systemctl stop nose-pluto.service"
|
source ./app/scripts/config.sh
|
||||||
|
ssh $HOST "sudo systemctl stop nose-pluto.service"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user