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

iiab-update: Try "bash -e" (exit on error) and "cp -u" (--update)

This commit is contained in:
A Holt 2024-07-18 15:24:22 -04:00 committed by GitHub
parent 280cea8b9d
commit 291c049919
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).
@ -40,7 +41,7 @@
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
cp -u iiab-update iiab-summary iiab-diagnostics /usr/bin
fi
if [[ $1 == "-f" || $1 == "--fast" ]]; then