Ver código fonte

pelican onion address

Bob Mottram 8 anos atrás
pai
commit
8eecc01d65
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7
    0
      src/freedombone-app-pelican

+ 7
- 0
src/freedombone-app-pelican Ver arquivo

@@ -35,6 +35,7 @@ SHOW_ON_ABOUT=1
35 35
 
36 36
 PELICAN_DOMAIN_NAME=
37 37
 PELICAN_BLOG_CODE=
38
+PELICAN_ONION_PORT=8113
38 39
 
39 40
 PELICAN_THEMES_REPO="https://github.com/getpelican/pelican-themes"
40 41
 PELICAN_PLUGINS_REPO="https://github.com/getpelican/pelican-plugins"
@@ -515,6 +516,9 @@ function remove_pelican {
515 516
     fi
516 517
     pip uninstall pelican
517 518
     remove_certs $PELICAN_DOMAIN_NAME
519
+
520
+    function_check remove_onion_service
521
+    remove_onion_service htmly ${PELICAN_ONION_PORT}
518 522
 }
519 523
 
520 524
 function create_pelican_conf {
@@ -782,6 +786,9 @@ function install_pelican {
782 786
 
783 787
     pelican_editor_config
784 788
 
789
+    PELICAN_ONION_HOSTNAME=$(add_onion_service pelican 80 ${PELICAN_ONION_PORT})
790
+    set_completion_param "pelican onion domain" "$PELICAN_ONION_HOSTNAME"
791
+
785 792
     install_pelican_website
786 793
     install_pelican_website_onion
787 794