Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 59aa541

Browse files
committed
simple installer
1 parent 1814a5b commit 59aa541

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

gitreceive

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ case "$1" in
1414
cat > $GITHOME/receiver <<EOF
1515
#!/bin/bash
1616
URL=http://requestb.in/rlh4znrl
17+
echo "----> Posting to $URL ..."
1718
curl \\
1819
-X 'POST' \\
1920
-F "repository=\$1" \\
@@ -25,6 +26,7 @@ curl \\
2526
EOF
2627
chmod +x $GITHOME/receiver
2728
chown -R $GITUSER $GITHOME
29+
echo "Created receiver script in $GITHOME for user '$GITUSER'."
2830
;;
2931

3032
upload-key) # gitreceive upload-key <username>
@@ -33,6 +35,7 @@ EOF
3335
AUTHORIZED_KEYS=$GITHOME/.ssh/authorized_keys
3436
KEY_PREFIX="command=\"$SELF run $2 $FINGERPRINT\",no-agent-forwarding,no-pty,no-user-rc,no-X11-forwarding,no-port-forwarding"
3537
echo "$KEY_PREFIX $KEY" >> $AUTHORIZED_KEYS
38+
echo $FINGERPRINT
3639
;;
3740

3841
# Internal commands
@@ -73,7 +76,7 @@ EOF
7376
fi
7477
fi
7578
done
76-
exit 1 # for debugging
79+
#exit 1 # for debugging
7780
;;
7881

7982
*)

installer

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# this is to be used with:
2+
# curl https://raw.github.com/progrium/gitreceive/master/installer | bash
3+
curl --silent https://raw.github.com/progrium/gitreceive/master/gitreceive > /usr/local/bin/gitreceive
4+
chmod +x /usr/local/bin/gitreceive

0 commit comments

Comments
 (0)