From 322c8c1cf3c2ce30df771168471c7d5408847637 Mon Sep 17 00:00:00 2001 From: Jeremy Price Date: Thu, 4 Jan 2024 16:42:43 -0800 Subject: [PATCH] install php-sodium on al2. fix snipeit database name --- snipeit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snipeit.sh b/snipeit.sh index 0b8c91444..999cc6dc5 100755 --- a/snipeit.sh +++ b/snipeit.sh @@ -218,7 +218,7 @@ install_composer () { install_snipeit () { create_user echo "* Creating MariaDB Database/User." - mysql -u root --execute="CREATE DATABASE snipeit_dbuser;CREATE USER snipeit_dbuser@localhost IDENTIFIED BY '$mysqluserpw'; GRANT ALL PRIVILEGES ON snipeit.* TO snipeit_dbuser@localhost;" + mysql -u root --execute="CREATE DATABASE snipeit;CREATE USER snipeit_dbuser@localhost IDENTIFIED BY '$mysqluserpw'; GRANT ALL PRIVILEGES ON snipeit.* TO snipeit_dbuser@localhost;" echo -e "\n\n* Cloning Snipe-IT from github to the web directory." log "git clone https://github.com/snipe/snipe-it $APP_PATH" & pid=$! @@ -725,7 +725,7 @@ EOL amazon-linux-extras install -y php8.2 echo "* Installing Apache httpd, PHP, MariaDB and other requirements." - PACKAGES="httpd mariadb-server git unzip php php-mysqlnd php-bcmath php-embedded php-gd php-mbstring php-mcrypt php-ldap php-json php-simplexml php-process php-zip" + PACKAGES="httpd mariadb-server git unzip php php-mysqlnd php-bcmath php-embedded php-gd php-mbstring php-mcrypt php-ldap php-json php-simplexml php-process php-zip php-sodium" install_packages echo "* Configuring Apache."