Files
runner-images/images/linux/scripts/installers/post-deployment.sh
Dibir Magomedsaygitov 75112c4449 clean yarn and npm cache
2020-10-27 17:24:59 +03:00

30 lines
701 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
# Clean yarn and npm cache
yarn cache clean
npm cache clean --force