mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-17 12:12:16 -05:00
installer / updates
This commit is contained in:
@@ -5,6 +5,8 @@ install_self_update_support() {
|
||||
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
|
||||
install -D -o root -g root -m 0755 rover/bin/roverd-self-update.sh /usr/local/sbin/roverd-self-update.new
|
||||
# Keep the running updater on its original inode until it exits.
|
||||
mv -f /usr/local/sbin/roverd-self-update.new /usr/local/sbin/roverd-self-update
|
||||
log "Registered update checkout at $REPO_ROOT"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user