diff options
-rw-r--r-- | README.md | 17 | ||||
-rwxr-xr-x | add_git_key.sh (renamed from add_git_key) | 1 | ||||
-rwxr-xr-x | del_repo.sh (renamed from del_repo) | 2 | ||||
-rwxr-xr-x | gitscripts.conf.example | 2 | ||||
-rwxr-xr-x | restart_ui.sh (renamed from restart_ui) | 0 | ||||
l--------- | rm_repo | 1 | ||||
l--------- | rm_repo.sh | 1 |
7 files changed, 20 insertions, 4 deletions
@@ -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 @@ -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 |