Skip to content

Commit 824fd22

Browse files
authored
fix mysql_version
1 parent feacacc commit 824fd22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/kimai-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ msg_info "Setting up database"
4444
DB_NAME=kimai_db
4545
DB_USER=kimai
4646
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
47-
MYSQL_VERSION=$(mysql --version | grep -oP 'Distrib \K[0-9]+\.[0-9]+\.[0-9]+')
47+
MYSQL_VERSION=$(mysql --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
4848
mysql -u root -e "CREATE DATABASE $DB_NAME;"
4949
mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
5050
mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"

0 commit comments

Comments
 (0)