mirror of
https://github.com/cirruslabs/tart-guest-agent.git
synced 2026-09-30 03:41:55 +02:00
* Automatically install and start a systemd service * Use Bash and set shell options to enable fail-fast behavior * Ensure that we're performing disk manipulations on Tart 2.0.0 or newer
14 lines
429 B
Bash
14 lines
429 B
Bash
#!/bin/bash
|
|
|
|
# Set shell options to enable fail-fast behavior
|
|
#
|
|
# * -e: fail the script when an error occurs or command fails
|
|
# * -u: fail the script when attempting to reference unset parameters
|
|
# * -o pipefail: by default an exit status of a pipeline is that of its
|
|
# last command, this fails the pipe early if an error in
|
|
# any of its commands occurs
|
|
#
|
|
set -euo pipefail
|
|
|
|
systemctl daemon-reload
|