Compare commits
2 Commits
abc2b9f2fa
...
436382087f
| Author | SHA1 | Date | |
|---|---|---|---|
| 436382087f | |||
| c569ddc338 |
|
|
@ -3,7 +3,7 @@
|
||||||
import { $ } from "bun"
|
import { $ } from "bun"
|
||||||
import restart from "./restart"
|
import restart from "./restart"
|
||||||
|
|
||||||
export default async function () {
|
export default async function update() {
|
||||||
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." }
|
||||||
}
|
}
|
||||||
|
|
@ -17,3 +17,5 @@ export default async function () {
|
||||||
return restart()
|
return restart()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const GET = update
|
||||||
|
|
@ -3,5 +3,6 @@
|
||||||
# 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}"
|
||||||
|
|
@ -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
|
||||||
ssh $HOST "sudo reboot"
|
curl $OPEN/cmd/update
|
||||||
Loading…
Reference in New Issue
Block a user