1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ghost_ynh.git synced 2024-09-03 19:16:02 +02:00

Use IPv4 for localhost servers connections

This commit is contained in:
tituspijean 2023-09-03 21:07:23 +02:00
parent 8a20d9983a
commit a6d0fb911b
No known key found for this signature in database
GPG key ID: EF3B0D7CC0A94720
2 changed files with 4 additions and 4 deletions

View file

@ -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"

View file

@ -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