mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-17 04:02:21 -05:00
11 lines
393 B
Bash
11 lines
393 B
Bash
#!/usr/bin/env bash
|
|
|
|
install_self_update_support() {
|
|
local quoted_repo_root
|
|
printf -v quoted_repo_root '%q' "$REPO_ROOT"
|
|
printf 'ROVERD_REPO_DIR=%s\n' "$quoted_repo_root" > /etc/roverd-update.env
|
|
chmod 0600 /etc/roverd-update.env
|
|
install -D -o root -g root -m 0755 rover/bin/roverd-self-update.sh /usr/local/sbin/roverd-self-update
|
|
log "Registered update checkout at $REPO_ROOT"
|
|
}
|