Updated to AlmaLinux 9 and reduced image size. Updated documentation to reflect move to ECR and changes
This commit is contained in:
@@ -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..."
|
||||
|
Reference in New Issue
Block a user