Skip to content

Commit e08a587

Browse files
authored
kimai revert failed mariadb
quickfix due failed migration of mariadb for kimai #4880
1 parent 6ee8349 commit e08a587

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install/kimai-install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ $STD apt-get install -y \
2323
lsb-release
2424
msg_ok "Installed Dependencies"
2525

26-
install_mariadb
26+
install_mysql
2727

2828
msg_info "Adding PHP8.4 Repository"
2929
$STD curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
@@ -45,9 +45,9 @@ DB_NAME=kimai_db
4545
DB_USER=kimai
4646
DB_PASS=$(openssl rand -base64 18 | tr -dc 'a-zA-Z0-9' | head -c13)
4747
MYSQL_VERSION=$(mysql --version | grep -oP 'Distrib \K[0-9]+\.[0-9]+\.[0-9]+')
48-
mariadb -u root -e "CREATE DATABASE $DB_NAME;"
49-
mariadb -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
50-
mariadb -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
48+
mysql -u root -e "CREATE DATABASE $DB_NAME;"
49+
mysql -u root -e "CREATE USER '$DB_USER'@'localhost' IDENTIFIED WITH mysql_native_password AS PASSWORD('$DB_PASS');"
50+
mysql -u root -e "GRANT ALL ON $DB_NAME.* TO '$DB_USER'@'localhost'; FLUSH PRIVILEGES;"
5151
{
5252
echo "Kimai-Credentials"
5353
echo "Kimai Database User: $DB_USER"

0 commit comments

Comments
 (0)