[Ubuntu] get rid of homebrew post-gen script (#4634)

This commit is contained in:
Mikhail Koliada
2021-12-22 10:41:15 +03:00
committed by GitHub
parent cfacab19e6
commit 5aca2192f7
2 changed files with 1 additions and 21 deletions

View File

@@ -1,18 +0,0 @@
#!/bin/bash
# Fix permissions for Homebrew
# https://github.com/actions/virtual-environments/issues/1568
# Reset brew repository directory to make the brew clean after chmoding /home
cd $(brew --repo)
git reset --hard
brew_folder="/home/linuxbrew/"
homebrew_user=$(cut -d: -f1 /etc/passwd | tail -1)
if [ -d "$brew_folder" ]; then
brew_folder_owner=$(ls -ld $brew_folder | awk '{print $3}')
if [ "$homebrew_user" != "$brew_folder_owner" ]; then
chown "$homebrew_user":docker -R $brew_folder
fi
fi

View File

@@ -10,8 +10,6 @@ echo "chmod -R 777 /opt"
chmod -R 777 /opt
echo "chmod -R 777 /usr/share"
chmod -R 777 /usr/share
echo "chmod -R 777 /home"
chmod -R 777 /home
# remove installer and helper folders
rm -rf $HELPER_SCRIPT_FOLDER
@@ -27,4 +25,4 @@ echo "Updated /etc/environment: $(cat /etc/environment)"
# Clean yarn and npm cache
yarn cache clean
npm cache clean --force
npm cache clean --force