up file
authorFabián Bonetti <mama21mama2000@yahoo.com.ar>
Mon, 7 Jun 2021 12:03:49 +0000 (09:03 -0300)
committerFabián Bonetti <mama21mama2000@yahoo.com.ar>
Mon, 7 Jun 2021 12:03:49 +0000 (09:03 -0300)
gemini.sh [new file with mode: 0755]

diff --git a/gemini.sh b/gemini.sh
new file mode 100755 (executable)
index 0000000..fe9c6ed
--- /dev/null
+++ b/gemini.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+#       Gemini-Bash v7-21
+#       
+#       Copyright 2021 Fabián Bonetti <mama21mama2000@yahoo.com.ar>
+#       
+#       This program is free software; you can redistribute it and/or modify
+#       it under the terms of the GNU General Public License as published by
+#       the Free Software Foundation; either version 3 of the License, or
+#       (at your option) any later version.
+#       
+#       This program is distributed in the hope that it will be useful,
+#       but WITHOUT ANY WARRANTY; without even the implied warranty of
+#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#       GNU General Public License for more details.
+#       
+#       You should have received a copy of the GNU General Public License
+#       along with this program; if not, write to the Free Software
+#       Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+#       MA 02110-1301, USA. 
+echo "ejemplo: reisub.nsupdate.info"
+read -p 'Dominio: ' dominio
+echo "ejemplo: test"
+read -p 'Cápsula: ' uservar
+echo "ejemplo: index"
+read -p 'Página (sin extension): ' paginavar
+#la variable paginavar se puede usar como subcarpeta
+#ejempo: libros/index
+echo  Tipos de Index
+read -p "index.gemini (1) index.gmi (2)?" CONT
+if [ "$CONT" = "1" ]; then
+index=.gemini
+printf "gemini://$dominio:1965/"$uservar"/$paginavar$index\r\n\r\n" | openssl s_client -quiet -connect $dominio:1965
+else
+index=.gmi
+printf "gemini://$dominio:1965/"$uservar"/$paginavar$index\r\n\r\n" | openssl s_client -quiet -connect $dominio:1965
+fi