aboutsummaryrefslogtreecommitdiffstats
path: root/roles/git/files/git-shell-commands/make-private
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-05-15 20:19:55 +0800
committerAaron LI <aly@aaronly.me>2018-05-15 20:19:55 +0800
commit23e763e7f75093c3a2ad21c40ce3644984df0098 (patch)
tree8a0afda8b8eb65ce919dfc59841c0a7e7218b115 /roles/git/files/git-shell-commands/make-private
parent72e1527399880eb9800a52653fd635c968d4be35 (diff)
downloadansible-dfly-vps-23e763e7f75093c3a2ad21c40ce3644984df0098.tar.bz2
git: remove obsolete git-shell-commands files and vars.conf.j2
Diffstat (limited to 'roles/git/files/git-shell-commands/make-private')
-rw-r--r--roles/git/files/git-shell-commands/make-private30
1 files changed, 0 insertions, 30 deletions
diff --git a/roles/git/files/git-shell-commands/make-private b/roles/git/files/git-shell-commands/make-private
deleted file mode 100644
index 566b017..0000000
--- a/roles/git/files/git-shell-commands/make-private
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2017 Aaron LI <aly@aaronly.me>
-# MIT License
-#
-# Turn a public Git repository to be private to `cgit`.
-#
-# 2017-06-19
-#
-
-. ${HOME}/vars.conf
-
-if [ $# -ne 1 ]; then
- echo "usage: make-private <repository.git>"
- exit 1
-fi
-
-project="${1%.[gG][iI][tT]}.git"
-
-if [ ! -d "${HOME}/${project}" ]; then
- echo "ERROR: repository '${project}' not exists!"
- exit 2
-elif [ -L "${PUBLIC}/${project}" ]; then
- rm "${PUBLIC}/${project}"
- echo "Made repository '${project}' private."
- exit 0
-else
- echo "Repository '${project}' not public."
- exit 0
-fi