Skip to content

Commit

Permalink
pre-create .composer folder to preserve permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Darleev authored and Mikhail Timofeev committed May 14, 2020
1 parent ca83dc0 commit ef9b137
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/linux/scripts/installers/1604/php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ prependEtcEnvironmentPath /home/runner/.config/composer/vendor/bin
# Add composer bin folder to path
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> /etc/skel/.bashrc

#Create composer folder for user to preserve folder permissions
mkdir -p /etc/skel/.composer

# Install phpunit (for PHP)
wget -q -O phpunit https://phar.phpunit.de/phpunit-7.phar
chmod +x phpunit
Expand Down
3 changes: 3 additions & 0 deletions images/linux/scripts/installers/1804/php.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ prependEtcEnvironmentPath /home/runner/.config/composer/vendor/bin
# Add composer bin folder to path
echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> /etc/skel/.bashrc

#Create composer folder for user to preserve folder permissions
mkdir -p /etc/skel/.composer

# Install phpunit (for PHP)
wget -q -O phpunit https://phar.phpunit.de/phpunit-7.phar
chmod +x phpunit
Expand Down

0 comments on commit ef9b137

Please sign in to comment.