How to Cleanup macOS or Linux Worker

This documentation is generated by Attune

Automate This

Use the Attune GUI for your Scripts

    1 Download Attune
    2 Copy the Attune Project URL
    3 Clone the Project in Attune
    4 Plan your Job(s)
    5 Run your Job(s)

You've automated: Cleanup macOS or Linux Worker


Get the most out of automation with our get started videos, product demonstrations, and more.

Learn Attune Automation

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
                
            

Completed

You have completed this instruction.

Attune - Powered by ServerTribe

Automate with Attune

Download the Attune Community Edition.

DOWNLOAD!!!

Discuss this Project in Discord

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!

Join NOW!!!