aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2022-09-20 23:38:36 +0100
committerjwansek <eddie.atten.ea29@gmail.com>2022-09-20 23:38:36 +0100
commit0622363f32676c19985396177c93dbc58785925f (patch)
tree86be4d15d2e8b60325829dfa39f1e840bdc94cfb
parenta45c5119711a4140b9710ef96ddf0578d5cf9cd3 (diff)
downloadgit-scripts-0622363f32676c19985396177c93dbc58785925f.tar.gz
git-scripts-0622363f32676c19985396177c93dbc58785925f.zip
Renamed scripts, improved README.md
-rw-r--r--README.md17
-rwxr-xr-xadd_git_key.sh (renamed from add_git_key)1
-rwxr-xr-xdel_repo.sh (renamed from del_repo)2
-rwxr-xr-xgitscripts.conf.example2
-rwxr-xr-xrestart_ui.sh (renamed from restart_ui)0
l---------rm_repo1
l---------rm_repo.sh1
7 files changed, 20 insertions, 4 deletions
diff --git a/README.md b/README.md
index d7aa964..54a0ea1 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,17 @@
# git-scripts
-Scripts used for configuration of my git server - git.eda.gay
+Interactive scripts used for configuration of my git server - git.eda.gay
+
+## Scripts
+
+It is recommended to make symlinks to the home directory- e.g.:
+`ln -s $(pwd)/add_git_key.sh ~/add_git_key && chmod +x ~/add_git_key`
+`ln -s $(pwd)/del_repo.sh ~/del_repo && chmod +x ~/del_repo`
+`ln -s $(pwd)/make_repo.py ~/make_repo && chmod +x ~/make_repo`
+`ln -s $(pwd)/show_gitkey.py ~/show_gitkey && chmod +x ~/show_gitkey`
+`ln -s $(pwd)/del_repo.sh ~/rm_repo && chmod +x ~/rm_repo`
+
+Then repositories can be created with `ssh git@git.eda.gay "./make_repo"` or removed with `ssh git@git.eda.gay "./rm_repo"`.
+
+## Web UI
+
+Repositories that are set to public are rendered using [klaus](https://github.com/jonashaag/klaus), using a custom CSS file and Dockerfile. This is in the `klaus/` directory.
diff --git a/add_git_key b/add_git_key.sh
index 6c2f3c4..222993f 100755
--- a/add_git_key
+++ b/add_git_key.sh
@@ -3,3 +3,4 @@
gh ssh-key add $1 --title $2
rm $1
+echo "Successfully added new key with title " $2
diff --git a/del_repo b/del_repo.sh
index 5f2f1c3..efd3421 100755
--- a/del_repo
+++ b/del_repo.sh
@@ -7,4 +7,4 @@ rm -fvr /srv/git/$repo.git
rm -fvr ~/$repo*
rm -fv /srv/www/repositories/$repo*
-bash /srv/www/git-scripts/restart_ui
+bash /srv/www/git-scripts/restart_ui.sh
diff --git a/gitscripts.conf.example b/gitscripts.conf.example
index ee273b0..f35faba 100755
--- a/gitscripts.conf.example
+++ b/gitscripts.conf.example
@@ -4,7 +4,7 @@ repo_meta_path = /srv/www/repositories
domain = git.eda.gay
gitignore_templates = /srv/www/gitignore
license_templates = /srv/www/license-templates/templates
-restart_ui_cmd = bash /srv/www/git-scripts/restart_ui
+restart_ui_cmd = bash /srv/www/git-scripts/restart_ui.sh
[github]
user = jwansek
diff --git a/restart_ui b/restart_ui.sh
index 806358d..806358d 100755
--- a/restart_ui
+++ b/restart_ui.sh
diff --git a/rm_repo b/rm_repo
deleted file mode 120000
index 872ba03..0000000
--- a/rm_repo
+++ /dev/null
@@ -1 +0,0 @@
-del_repo \ No newline at end of file
diff --git a/rm_repo.sh b/rm_repo.sh
new file mode 120000
index 0000000..467611c
--- /dev/null
+++ b/rm_repo.sh
@@ -0,0 +1 @@
+del_repo.sh \ No newline at end of file