1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #3771 from holta/iiab-update2

iiab-update: minor refinements for safety + usability
This commit is contained in:
A Holt 2024-07-18 16:04:30 -04:00 committed by GitHub
commit 5debb5e650
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,5 @@
#!/bin/bash
#!/bin/bash -e
# "-e" tries to exit right away on error.
# Upgrade IIAB core software (apt updates, Ansible, Admin Console, etc).
@ -39,8 +40,8 @@
git pull https://github.com/iiab/iiab --no-rebase --no-edit
if [[ $1 == "-f" || $1 == "--fast" ]]; then # Otherwise ./runrole does it below! (as Ansible runs roles/0-init)
cd scripts
echo -e "\n\e[4mNow running: cp iiab-update iiab-summary iiab-diagnostics /usr/bin\e[0m\n"
cp iiab-update iiab-summary iiab-diagnostics /usr/bin
echo -e "\n\e[4mNow running: cp -u iiab-update iiab-summary iiab-diagnostics /usr/bin\e[0m\n"
cp -u iiab-update iiab-summary iiab-diagnostics /usr/bin
fi
if [[ $1 == "-f" || $1 == "--fast" ]]; then