Files
runner-images-temp/images/linux/scripts/installers/post-deployment.sh
T

28 lines
721 B
Bash
Raw Normal View History

2020-10-07 13:49:40 +05:00
#!/bin/bash -e
2020-09-21 11:18:28 +03:00
################################################################################
## File: post-deployment.sh
## Desc: Post deployment actions
################################################################################
mv -f /imagegeneration/post-generation /opt
2020-09-21 11:18:28 +03:00
# 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
2020-11-03 15:56:49 +03:00
# Remove quotes around PATH
2020-11-03 15:55:19 +03:00
PATH=${PATH#"\""}
PATH=${PATH%"\""}
echo "PATH=$PATH" | sudo tee -a /etc/environment
echo "Updated PATH: $PATH
2020-10-27 17:24:59 +03:00
# Clean yarn and npm cache
yarn cache clean
npm cache clean --force