pelican onion address

This commit is contained in:
Bob Mottram 2017-03-31 22:36:59 +01:00
parent 65025208c0
commit 8eecc01d65
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,7 @@ SHOW_ON_ABOUT=1
PELICAN_DOMAIN_NAME=
PELICAN_BLOG_CODE=
PELICAN_ONION_PORT=8113
PELICAN_THEMES_REPO="https://github.com/getpelican/pelican-themes"
PELICAN_PLUGINS_REPO="https://github.com/getpelican/pelican-plugins"
@ -515,6 +516,9 @@ function remove_pelican {
fi
pip uninstall pelican
remove_certs $PELICAN_DOMAIN_NAME
function_check remove_onion_service
remove_onion_service htmly ${PELICAN_ONION_PORT}
}
function create_pelican_conf {
@ -782,6 +786,9 @@ function install_pelican {
pelican_editor_config
PELICAN_ONION_HOSTNAME=$(add_onion_service pelican 80 ${PELICAN_ONION_PORT})
set_completion_param "pelican onion domain" "$PELICAN_ONION_HOSTNAME"
install_pelican_website
install_pelican_website_onion