Compare commits

..

No commits in common. "436382087f03de96b911e652028e5c046ec9b766" and "abc2b9f2fa8e392eb415a4216b5f7c6a487f0df8" have entirely different histories.

3 changed files with 3 additions and 6 deletions

View File

@ -3,7 +3,7 @@
import { $ } from "bun" import { $ } from "bun"
import restart from "./restart" import restart from "./restart"
export default async function update() { export default async function () {
if (process.env.NODE_ENV !== "production") { if (process.env.NODE_ENV !== "production") {
return { error: "Can only update in production." } return { error: "Can only update in production." }
} }
@ -16,6 +16,4 @@ export default async function update() {
} else { } else {
return restart() return restart()
} }
} }
export const GET = update

View File

@ -3,6 +3,5 @@
# 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:-nose@nose-pluto.local}" HOST="${HOST:-nose@nose-pluto.local}"
URL="${URL:-http://nose-pluto.local}
DEST="${DEST:-~/.nose}" DEST="${DEST:-~/.nose}"
REPO="${REPO:-https://git.nose.space/defunkt/nose-pluto}" REPO="${REPO:-https://git.nose.space/defunkt/nose-pluto}"

View File

@ -21,4 +21,4 @@ git push origin main
git push gitea main git push gitea main
# Run remote install on the target # Run remote install on the target
curl $OPEN/cmd/update ssh $HOST "sudo reboot"