mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-27 21:06:18 +02:00
Installer update
This commit is contained in:
parent
bb5d34e0f0
commit
be42104be6
1 changed files with 4 additions and 6 deletions
|
@ -140,11 +140,6 @@ EOF
|
||||||
echo "Please follow the prompts for secure installation of MariaDB."
|
echo "Please follow the prompts for secure installation of MariaDB."
|
||||||
mysql_secure_installation
|
mysql_secure_installation
|
||||||
|
|
||||||
# Import SQL file into MariaDB, which includes database creation
|
|
||||||
echo "Importing SQL file into MariaDB..."
|
|
||||||
mysql -u root < /opt/registry/database/registry.mariadb.sql
|
|
||||||
echo "SQL import completed."
|
|
||||||
|
|
||||||
# Create user and grant privileges
|
# Create user and grant privileges
|
||||||
echo "Creating user $DB_USER and setting privileges..."
|
echo "Creating user $DB_USER and setting privileges..."
|
||||||
mysql -u root -e "CREATE USER IF NOT EXISTS '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASSWORD';"
|
mysql -u root -e "CREATE USER IF NOT EXISTS '$DB_USER'@'localhost' IDENTIFIED BY '$DB_PASSWORD';"
|
||||||
|
@ -190,12 +185,14 @@ EOF
|
||||||
ufw allow 443/udp
|
ufw allow 443/udp
|
||||||
ufw allow 700/tcp
|
ufw allow 700/tcp
|
||||||
ufw allow 700/udp
|
ufw allow 700/udp
|
||||||
|
ufw allow 1043/tcp
|
||||||
|
ufw allow 1043/udp
|
||||||
ufw allow 53/tcp
|
ufw allow 53/tcp
|
||||||
ufw allow 53/udp
|
ufw allow 53/udp
|
||||||
|
|
||||||
# Enable the firewall
|
# Enable the firewall
|
||||||
echo "Enabling the firewall..."
|
echo "Enabling the firewall..."
|
||||||
ufw enable
|
ufw --force enable
|
||||||
|
|
||||||
# Function to generate bind line
|
# Function to generate bind line
|
||||||
generate_bind_line() {
|
generate_bind_line() {
|
||||||
|
@ -323,6 +320,7 @@ EOF
|
||||||
|
|
||||||
echo "Importing database."
|
echo "Importing database."
|
||||||
mysql -u "$DB_USER" -p"$DB_PASSWORD" < /opt/registry/database/registry.mariadb.sql
|
mysql -u "$DB_USER" -p"$DB_PASSWORD" < /opt/registry/database/registry.mariadb.sql
|
||||||
|
echo "SQL import completed."
|
||||||
|
|
||||||
echo "Installing Web WHOIS."
|
echo "Installing Web WHOIS."
|
||||||
mkdir -p /var/www/whois
|
mkdir -p /var/www/whois
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue