summaryrefslogtreecommitdiff
path: root/EndoForge
diff options
context:
space:
mode:
Diffstat (limited to 'EndoForge')
-rwxr-xr-xEndoForge/src/AnonymousAccessCommand16
1 files changed, 15 insertions, 1 deletions
diff --git a/EndoForge/src/AnonymousAccessCommand b/EndoForge/src/AnonymousAccessCommand
index ffdc07a..082f185 100755
--- a/EndoForge/src/AnonymousAccessCommand
+++ b/EndoForge/src/AnonymousAccessCommand
@@ -12,6 +12,20 @@ default_msg()
12EOF 12EOF
13} 13}
14 14
15not_self_forge_message()
16{
17 cat <<EOF >&2
18Error: access denied. The specified directory is not a self-forge.
19
20 To enable anonymous access, use the following commands:
21
22 ssh $(id -un)@$(hostname)
23 cd "$1"
24 git config core.self-forge true
25
26EOF
27}
28
15get_sshfp_authline() 29get_sshfp_authline()
16{ 30{
17 ( 31 (
@@ -109,7 +123,7 @@ fi
109 123
110if ! is_self_forge "$dir" 124if ! is_self_forge "$dir"
111then 125then
112 echo 'Error: access denied. The specified directory is not a self-forge.' >&2 126 not_self_forge_message "$arg"
113 exit 127 exit
114fi 128fi
115 129