mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-17 20:22:20 -05:00
ui betterment
This commit is contained in:
@@ -11,6 +11,7 @@ if [[ ! -e /opt/roverd ]]; then
|
||||
git clone https://github.com/legop3/MultiRoombaRover.git /opt/roverd
|
||||
fi
|
||||
[[ -d /opt/roverd/.git ]] || { echo '/opt/roverd must be a repository checkout' >&2; exit 1; }
|
||||
git -C /opt/roverd pull --ff-only
|
||||
export ROVERD_INITIAL_NAME="$rover_name" ROVERD_INITIAL_SERVER="$server_address"
|
||||
bash /opt/roverd/rover/install_roverd.sh
|
||||
systemctl restart roverd
|
||||
|
||||
@@ -45,6 +45,8 @@ install -D -o root -g root -m 0755 rover/bin/roverd-self-update.sh /usr/local/sb
|
||||
# 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
|
||||
echo "Registered update checkout at $REPO_ROOT"
|
||||
# Refuse to report a successful installation with an unusable saved config.
|
||||
/usr/local/bin/roverd -config /etc/roverd.json -check-config
|
||||
systemctl daemon-reload
|
||||
systemctl enable roverd.service
|
||||
echo 'Installation complete; caller can now restart roverd.'
|
||||
|
||||
Reference in New Issue
Block a user