Fixed home user dir on rocky linux

This commit is contained in:
Eliezer Croitoru 2024-11-21 03:34:14 +02:00
parent 406e02d20d
commit f80b75ffb5
2 changed files with 8 additions and 3 deletions

View File

@ -70,6 +70,9 @@ create-user-debian:
create-user-rocky: create-user-rocky:
adduser --system --shell /bin/bash -d /home/git git adduser --system --shell /bin/bash -d /home/git git
mkdir -p /home/git
chown git:git -R /home/git
download-gitea: download-gitea:
bash download-gitea.sh bash download-gitea.sh

View File

@ -1,7 +1,9 @@
CREATE DATABASE gitea CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin'; CREATE DATABASE gitea CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_bin';
CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'git'; CREATE USER 'gitea'@'localhost' IDENTIFIED BY 'git';
GRANT ALL PRIVILEGES ON *.* TO 'eliezer'@'localhost'; GRANT ALL PRIVILEGES ON *.* TO 'gitea'@'localhost';
CREATE USER 'gitea'@'%' IDENTIFIED BY 'git'; CREATE USER 'gitea'@'%' IDENTIFIED BY 'git';
GRANT ALL PRIVILEGES ON *.* TO 'git'@'%'; GRANT ALL PRIVILEGES ON *.* TO 'gitea'@'%';
SHOW GRANTS FOR git; SHOW GRANTS FOR gitea;
FLUSH PRIVILEGES; FLUSH PRIVILEGES;