1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Use @HOSTNAME@ instead of hardcoded /bin/hostname.

scripts/mysql_install_db.sh:
  - use @HOSTNAME@ instead of /bin/hostname
scripts/safe_mysqld-watch.sh:
  - use @HOSTNAME@ instead of /bin/hostname
scripts/safe_mysqld.sh:
  - use @HOSTNAME@ instead of /bin/hostname
This commit is contained in:
unknown
2000-08-09 14:57:59 -04:00
parent 14ccbc09bb
commit f5fa7fee9d
3 changed files with 10 additions and 11 deletions

View File

@@ -77,9 +77,7 @@ then
fi
fi
# On IRIX hostname is in /usr/bsd so add this to the path
PATH=$PATH:/usr/bsd
hostname=`hostname` # Install this too in the user table
hostname=`@HOSTNAME@` # Install this too in the user table
# Check if hostname is valid
if test "$IN_RPM" -eq 0 -a $force -eq 0
@@ -287,7 +285,7 @@ then
echo "PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !"
echo "This is done with:"
echo "$bindir/mysqladmin -u root -p password 'new-password'"
echo "$bindir/mysqladmin -u root -h `hostname` -p password 'new-password'"
echo "$bindir/mysqladmin -u root -h $hostname -p password 'new-password'"
echo "See the manual for more instructions."
#
# Print message about upgrading unless we have created a new db table.