Updated to AlmaLinux 9 and reduced image size. Updated documentation to reflect move to ECR and changes

This commit is contained in:
2023-05-27 11:13:18 -07:00
parent 2545d91e04
commit f11845a77d
4 changed files with 40 additions and 20 deletions

View File

@@ -1,5 +1,9 @@
#!/bin/bash
if [ -z "$PHPVER" ]; then
PHPVER="81";
fi
adduser -u $uid $user
mkdir -p /home/$user/public_html
@@ -7,6 +11,8 @@ mkdir -p /home/$user/public_html
chown -R $user:$user /home/$user
chmod -R 755 /home/$user
/scripts/install-php$PHPVER.sh
/scripts/create-vhost.sh
/scripts/create-php-config.sh
@@ -15,7 +21,7 @@ chmod -R 755 /home/$user
if [[ $environment == 'DEV' ]]; then
echo "Starting Dev Deployment"
yum install -y MariaDB-server MariaDB-client
dnf install -y MariaDB-server MariaDB-client memcached
nohup mysqld -umysql &
if [ ! -f /var/lib/mysql/creds ]; then
echo "Give MySQL a chance to finish starting..."