Skip to content

Commit

Permalink
Add example config.php and refactor aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
markmetcalfe committed Oct 4, 2021
1 parent 213d919 commit bd41786
Show file tree
Hide file tree
Showing 16 changed files with 749 additions and 178 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ mutagen.yml.lock
!.gitkeep
/cron.d/*.cron
/shell/*.sh
/shell/*.bash
!/shell/default-aliases.sh
/custom/*.yml
/custom/*.yaml
/tools/.update
Expand Down
25 changes: 1 addition & 24 deletions apache/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,5 @@
#!/bin/bash

echo "Using data folder: $REMOTE_DATA"

cd $REMOTE_DATA || return;

echo "Creating data folders..."

versions=("22" "24" "25" "26" "27" "29" "9" "10" "11" "12" "13" "14" "15")

for i in "${versions[@]}"
do
:
echo "Creating folders for version $i"
mkdir -p "ver$i.mssql" "ver$i.mysql" "ver$i.pgsql"
chown -R www-data:www-data ver$i.mssql ver$i.mysql ver$i.pgsql
chmod g+s "ver$i.mssql" "ver$i.mysql" "ver$i.pgsql"

mkdir -p "ver$i.mssql.phpunit" "ver$i.mysql.phpunit" "ver$i.pgsql.phpunit" "ver$i.pgsql.behat"
chown -R www-data:www-data ver$i.pgsql.behat
chmod g+s "ver$i.pgsql.behat"
done

echo "done"

# if there's no ssl certificate yet create it
if [ ! -f "/usr/local/apache2/conf/server.crt" ]; then
openssl req \
Expand All @@ -36,7 +13,7 @@ if [ ! -f "/usr/local/apache2/conf/server.crt" ]; then
-out /usr/local/apache2/conf/server.crt
fi

# Replace the remote src variable in the nginx configuration with
# Replace the remote src variable in the apache configuration with
# the one defined in the environment variables
cp /usr/local/apache2/conf.d/server.conf /tmp/temp.conf
envsubst '$REMOTE_SRC' < /tmp/temp.conf > /usr/local/apache2/conf.d/server.conf
Expand Down
Loading

0 comments on commit bd41786

Please sign in to comment.