16 lines
512 B
Bash
16 lines
512 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
|
|
systemctl enable tart-guest-agent.service
|
|
systemctl start tart-guest-agent.service
|