Skip to content

Commit 36bab52

Browse files
authored
Fix php dependencies (#3820)
1 parent 911ca2d commit 36bab52

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

install/2fauth-install.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,18 @@ update_os
1616
msg_info "Installing Dependencies"
1717

1818
$STD apt-get install -y \
19-
lsb-release \
20-
gpg
19+
lsb-release \
20+
gpg
2121

2222
curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /usr/share/keyrings/deb.sury.org-php.gpg
23-
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
23+
echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" >/etc/apt/sources.list.d/php.list
2424
$STD apt-get update
2525

2626
$STD apt-get install -y \
27-
nginx \
28-
composer \
29-
php8.3-{bcmath,common,ctype,curl,fileinfo,fpm,gd,mbstring,mysql,xml,cli} \
30-
mariadb-server
27+
nginx \
28+
composer \
29+
php8.3-{bcmath,common,ctype,curl,fileinfo,fpm,gd,intl,mbstring,mysql,xml,cli} \
30+
mariadb-server
3131
msg_ok "Installed Dependencies"
3232

3333
msg_info "Setting up Database"
@@ -38,10 +38,10 @@ $STD mysql -u root -e "CREATE DATABASE $DB_NAME;"
3838
$STD mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
3939
$STD mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
4040
{
41-
echo "2FAuth Credentials"
42-
echo "Database User: $DB_USER"
43-
echo "Database Password: $DB_PASS"
44-
echo "Database Name: $DB_NAME"
41+
echo "2FAuth Credentials"
42+
echo "Database User: $DB_USER"
43+
echo "Database Password: $DB_PASS"
44+
echo "Database Name: $DB_NAME"
4545
} >>~/2FAuth.creds
4646
msg_ok "Set up Database"
4747

@@ -56,12 +56,12 @@ cp .env.example .env
5656
IPADDRESS=$(hostname -I | awk '{print $1}')
5757

5858
sed -i -e "s|^APP_URL=.*|APP_URL=http://$IPADDRESS|" \
59-
-e "s|^DB_CONNECTION=$|DB_CONNECTION=mysql|" \
60-
-e "s|^DB_DATABASE=$|DB_DATABASE=$DB_NAME|" \
61-
-e "s|^DB_HOST=$|DB_HOST=127.0.0.1|" \
62-
-e "s|^DB_PORT=$|DB_PORT=3306|" \
63-
-e "s|^DB_USERNAME=$|DB_USERNAME=$DB_USER|" \
64-
-e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env
59+
-e "s|^DB_CONNECTION=$|DB_CONNECTION=mysql|" \
60+
-e "s|^DB_DATABASE=$|DB_DATABASE=$DB_NAME|" \
61+
-e "s|^DB_HOST=$|DB_HOST=127.0.0.1|" \
62+
-e "s|^DB_PORT=$|DB_PORT=3306|" \
63+
-e "s|^DB_USERNAME=$|DB_USERNAME=$DB_USER|" \
64+
-e "s|^DB_PASSWORD=$|DB_PASSWORD=$DB_PASS|" .env
6565

6666
export COMPOSER_ALLOW_SUPERUSER=1
6767
$STD composer update --no-plugins --no-scripts

0 commit comments

Comments
 (0)