mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
run self update as systemd run
This commit is contained in:
@@ -29,6 +29,15 @@ if [[ "${EUID}" -ne 0 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${ROVERD_SELF_UPDATE_SYSTEMD:-}" != "1" ]] && command -v systemd-run >/dev/null 2>&1; then
|
||||||
|
exec systemd-run \
|
||||||
|
--unit=roverd-self-update \
|
||||||
|
--collect \
|
||||||
|
--property=Type=exec \
|
||||||
|
--setenv=ROVERD_SELF_UPDATE_SYSTEMD=1 \
|
||||||
|
"$0"
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -f "$ENV_FILE" ]]; then
|
if [[ ! -f "$ENV_FILE" ]]; then
|
||||||
echo "Missing $ENV_FILE; run pi/install_roverd.sh once to register the repository path" >&2
|
echo "Missing $ENV_FILE; run pi/install_roverd.sh once to register the repository path" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -13,4 +13,5 @@
|
|||||||
- external spectator access (new)
|
- external spectator access (new)
|
||||||
- off (no one can access the spectate page externally)
|
- off (no one can access the spectate page externally)
|
||||||
- on (everyone can access the spectate page externally)
|
- on (everyone can access the spectate page externally)
|
||||||
|
- admin (external spectators get mode gate overlay, when logged in once that identity gets spectator access forever. use database.)
|
||||||
- anything else related to bandwidth savings should also get config
|
- anything else related to bandwidth savings should also get config
|
||||||
Reference in New Issue
Block a user