Changed the way presence of mysql server is tested ("which" rather than "type")

This commit is contained in:
Papa Dragon 2022-12-27 01:42:20 +01:00
parent e4343c3b5a
commit 1f046602d1
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@
server {
listen 80;
listen [::]:80
listen [::]:80;
server_name SERVER_NAME;
charset utf-8;

View file

@ -364,7 +364,7 @@ function install_mysql {
then
die "mysqlpass not set in $configfile"
fi
if type mysql
if [ ! -z $(which mysql) ]
then
echo "mysql is already installed"
else