diff --git a/app/scripts/config.sh b/app/scripts/config.sh index f4a5f59..b2199d9 100644 --- a/app/scripts/config.sh +++ b/app/scripts/config.sh @@ -1,7 +1,7 @@ #!/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. -HOST="${HOST:-chris@nose-pluto.local}" -DEST="${DEST:-~/pluto}" +HOST="${HOST:-nose@nose-pluto.local}" +DEST="${DEST:-~/nose}" REPO="${REPO:-https://git.nose.space/defunkt/nose-pluto}" \ No newline at end of file diff --git a/app/scripts/deploy.sh b/app/scripts/deploy.sh index db8ed3e..f7f86bd 100755 --- a/app/scripts/deploy.sh +++ b/app/scripts/deploy.sh @@ -1,8 +1,3 @@ #!/usr/bin/env bash - -## -# deploys to your NOSEputer from git - source ./app/scripts/config.sh - ssh $HOST "cd $DEST && git pull && bun install && sudo systemctl restart nose-pluto.service" \ No newline at end of file diff --git a/app/scripts/install.sh b/app/scripts/install.sh index 8c19972..37ee4d4 100755 --- a/app/scripts/install.sh +++ b/app/scripts/install.sh @@ -45,5 +45,12 @@ sudo systemctl enable "$SERVICE_NAME" echo ">> Starting (or restarting) $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 +sudo reboot diff --git a/app/scripts/nose-pluto.service b/app/scripts/nose-pluto.service index bde5df3..d89782b 100644 --- a/app/scripts/nose-pluto.service +++ b/app/scripts/nose-pluto.service @@ -4,11 +4,11 @@ After=network-online.target Wants=network-online.target [Service] -User=chris -WorkingDirectory=/home/chris/pluto/app +User=nose +WorkingDirectory=/home/nose/nose/app Environment=PORT=80 Environment=NODE_ENV=production -ExecStart=/home/chris/.bun/bin/bun start +ExecStart=/home/nose/.bun/bin/bun start Restart=on-failure RestartSec=2 CapabilityBoundingSet=CAP_NET_BIND_SERVICE diff --git a/app/scripts/remote-install.sh b/app/scripts/remote-install.sh index 4be60fe..2a4cc55 100755 --- a/app/scripts/remote-install.sh +++ b/app/scripts/remote-install.sh @@ -1,8 +1,3 @@ #!/usr/bin/env bash - -## -# setup your NOSEputer from your dev machine - source ./app/scripts/config.sh - ssh $HOST "cd $DEST && ./app/scripts/install.sh && sudo systemctl start nose-pluto.service" \ No newline at end of file diff --git a/app/scripts/remote-restart.sh b/app/scripts/remote-restart.sh index 11cbc8f..3148b8e 100755 --- a/app/scripts/remote-restart.sh +++ b/app/scripts/remote-restart.sh @@ -1,2 +1,3 @@ #!/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" diff --git a/app/scripts/remote-start.sh b/app/scripts/remote-start.sh index 279cd03..3f15fb4 100755 --- a/app/scripts/remote-start.sh +++ b/app/scripts/remote-start.sh @@ -1,2 +1,3 @@ #!/usr/bin/env bash -ssh chris@nose-pluto.local "sudo systemctl start nose-pluto.service" \ No newline at end of file +source ./app/scripts/config.sh +ssh $HOST "sudo systemctl start nose-pluto.service" \ No newline at end of file diff --git a/app/scripts/remote-stop.sh b/app/scripts/remote-stop.sh index bb1be40..24f65b6 100755 --- a/app/scripts/remote-stop.sh +++ b/app/scripts/remote-stop.sh @@ -1,2 +1,3 @@ #!/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"