Created
May 2, 2022 15:02
-
-
Save llbbl/c320eae69b51af5d837835a36fa017e7 to your computer and use it in GitHub Desktop.
install ghost, so easy, they said
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
if [ ! -d "{{ghost_install_dir}}" ] | |
then | |
echo "creating {{ghost_install_dir}}" | |
mkdir {{ghost_install_dir}} | |
fi | |
cd {{ghost_install_dir}} | |
ghost install -d "{{ghost_install_dir}}" \ | |
--no-prompt \ | |
--url "{{ghost_site_url}}" \ | |
--admin-url "{{ghost_site_admin_url}}" \ | |
--ip 127.0.0.1 --port 2368 \ | |
--db "{{ghost_db_driver}}" \ | |
--dbhost "{{ghost_db_hostname}}" \ | |
--dbuser "{{ghost_db_user}}" \ | |
--dbport {{ghost_db_port}} \ | |
--dbpass "{{ghost_db_password}}" \ | |
--dbname "{{ghost_db_name}}" \ | |
--sslstaging "{{ghost_sslstaging}}" \ | |
--process "{{ghost_process_manager}}" \ | |
--mail "{{ghost_mail_driver}}" \ | |
--mailservice {{ghost_mail_service_name}} \ | |
--mailuser "{{ghost_mail_user}}" \ | |
--mailpass "{{ghost_mail_password}}" \ | |
--mailhost "{{ghost_mail_hostname}}" \ | |
--mailport {{ghost_mail_port}} \ | |
--no-setup-linux-user \ | |
--no-setup-nginx \ | |
--no-setup-ssl \ | |
--no-setup-systemd \ | |
--no-setup-mysql \ | |
--no-start \ | |
--no-setup-ssl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tested with Ghost v4.46.1