Files
runner-images/images/linux/scripts/installers/post-deployment.sh
Maxim Lobanov f38833acec Merge pull request #1755 from dsame/v-sedoli/set-e-ubuntu2
Fail Ubuntu image building on error in generation scripts
2020-10-13 08:56:35 +03:00

27 lines
633 B
Bash

#!/bin/bash -e
################################################################################
## File: post-deployment.sh
## Desc: Post deployment actions
################################################################################
mv -f /imagegeneration/post-generation /opt
# set chmod -R 777 /opt
if [[ -d "/opt" ]]; then
echo "chmod -R 777 /opt"
chmod -R 777 /opt
fi
# remove installer and helper folders
rm -rf $HELPER_SCRIPT_FOLDER
rm -rf $INSTALLER_SCRIPT_FOLDER
chmod 755 $IMAGE_FOLDER
# Check PATH
if [[ $PATH == \"*\" ]]
then
echo "ERROR: PATH contains quotes"
echo "PATH = $PATH"
exit 1
fi