Automate This
Use the Attune GUI for your Scripts
You've automated: Cleanup macOS or Linux Worker
Get the most out of automation with our get started videos, product demonstrations, and more.
The following steps will guide you through the manual process.
Deletes the following:
1. Build directory at {automationWorkerLinuxBaseDirectory}/build-{newOsNode.fqn}.2. Drivers drop in directory at{automationWorkerLinuxBaseDirectory}/drivers-{newOsNode.fqn}.
3. Kickstart ISO at{automationWorkerLinuxBaseDirectory}/kickstart_{newOsNode.fqn}.iso.
4. Drivers ISO at{automationWorkerLinuxBaseDirectory}/drivers_{newOsNode.fqn}.iso`.
Connect via ssh:
ssh {automationworkerlinuxuser}@{automationworkerlinuxnode}
Execute the following script:
DIR="{automationWorkerLinuxBaseDirectory}/build-{newOsNode.fqn}"
if [ -d "${DIR}" ]
then
rm -rf "${DIR}" && echo "Removed ${DIR}"
else
echo "No build directory to remove."
fi
# The wildcard will allow removal of
# - kickstart_{newOsNode.fqn}.iso
# - drivers_{newOsNode.fqn}.iso
ISOS={automationWorkerLinuxBaseDirectory}/*{newOsNode.fqn}.iso
i=0
for FILE in ${ISOS}
do
echo "$i. F = ${FILE}"
((i=i+1))
if [ -f "${FILE}" ]
then
rm -fv ${FILE}
else
echo "No ISO to remove."
fi
done
You have completed this instruction.
Join our Discord channel and connect with like-minded individuals who share your passion. Engage in lively discussions, gain valuable insights, and stay updated on the latest trends in our industry. Don't miss out on this opportunity to network, learn, and grow together.
Click the link below and become a part of our vibrant community on Discord today!