@@ -16,18 +16,18 @@ update_os
1616msg_info " Installing Dependencies"
1717
1818$STD apt-get install -y \
19- lsb-release \
20- gpg
19+ lsb-release \
20+ gpg
2121
2222curl -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
3131msg_ok " Installed Dependencies"
3232
3333msg_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
4646msg_ok " Set up Database"
4747
@@ -56,12 +56,12 @@ cp .env.example .env
5656IPADDRESS=$( hostname -I | awk ' {print $1}' )
5757
5858sed -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
6666export COMPOSER_ALLOW_SUPERUSER=1
6767$STD composer update --no-plugins --no-scripts
0 commit comments