@@ -24,13 +24,13 @@ step_2() {
|
||||
step_3_info() { echo "Adding user for $toolName (git:git)"; }
|
||||
step_3() {
|
||||
adduser \
|
||||
--system \
|
||||
--shell /bin/bash \
|
||||
--gecos 'Git Version Control' \
|
||||
--group \
|
||||
--disabled-password \
|
||||
--home /home/git \
|
||||
git
|
||||
--system \
|
||||
--shell /bin/bash \
|
||||
--gecos 'Git Version Control' \
|
||||
--group \
|
||||
--disabled-password \
|
||||
--home /home/git \
|
||||
git
|
||||
saveReturn $?
|
||||
endReturn
|
||||
}
|
||||
@@ -85,7 +85,7 @@ step_10() {
|
||||
mysql -u root -e 'CREATE DATABASE '$mysqlDatabase' CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
|
||||
echo "Existing mysql user:"
|
||||
mysql -u root -e 'SELECT User, Host FROM mysql.user;'
|
||||
echo -en "Enter mysql user name: "
|
||||
@@ -98,7 +98,7 @@ step_10() {
|
||||
mysql -u root -e 'CREATE USER '"'"$mysqlUser"'"'@'"'"'localhost'"'"' IDENTIFIED BY '"'"$mysqlPass"'"';'
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
||||
|
||||
mysql -u root -e 'GRANT ALL PRIVILEGES ON '$mysqlDatabase'.* TO '"'"$mysqlUser"'"'@'"'"'localhost'"'"';'
|
||||
saveReturn $?
|
||||
endReturn
|
||||
|
Reference in New Issue
Block a user