From a6d0fb911bb09d117568bae31931d544aa3f4130 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 3 Sep 2023 21:07:23 +0200 Subject: [PATCH] Use IPv4 for localhost servers connections --- scripts/install | 4 ++-- scripts/upgrade | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 210c2e7..bb610f4 100644 --- a/scripts/install +++ b/scripts/install @@ -37,8 +37,8 @@ pushd $install_dir --no-prompt --no-setup-systemd --no-start \ --dir ghost --no-setup-linux-user \ --no-setup-nginx --no-setup-ssl --url http://$domain$path --port $port \ - --db mysql --dbhost localhost --dbuser $db_user --dbpass $db_pwd --dbname $db_name \ - --mail SMTP --mailhost localhost --mailport 465 + --db mysql --dbhost 127.0.0.1 --dbuser $db_user --dbpass $db_pwd --dbname $db_name \ + --mail SMTP --mailhost 127.0.0.1 --mailport 465 # Cleanup cache ynh_secure_remove --file=".cache/yarn" diff --git a/scripts/upgrade b/scripts/upgrade index 16ea596..3fdd90f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -91,8 +91,8 @@ then --no-prompt --no-setup-systemd --no-start \ --dir ghost --no-setup-linux-user \ --no-setup-nginx --no-setup-ssl --url http://$domain$path --port $port \ - --db mysql --dbhost localhost --dbuser $db_user --dbpass $db_pwd --dbname $db_name \ - --mail SMTP --mailhost localhost --mailport 465 + --db mysql --dbhost 127.0.0.1 --dbuser $db_user --dbpass $db_pwd --dbname $db_name \ + --mail SMTP --mailhost 127.0.0.1 --mailport 465 popd # Copy content folder back to the install_dir