diff options
author | Ray Strode <rstrode@redhat.com> | 2016-12-06 03:20:14 +0000 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2016-12-06 03:20:14 +0000 |
commit | b422f7531ba7563b2d25f43d72f0cf04a4da3cff (patch) | |
tree | 29fc3d7ad43a3400db277d76820b6a55b6155b2b | |
parent | fb8819283d518488455a1922f84b4ff29c37e7f9 (diff) |
enable-github-mirror: add script for enabling github mirror
Just in case I need to do it again sometime.
-rwxr-xr-x | enable-github-mirror.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/enable-github-mirror.sh b/enable-github-mirror.sh new file mode 100755 index 0000000..a18d0eb --- /dev/null +++ b/enable-github-mirror.sh @@ -0,0 +1,7 @@ +#!/bin/sh +getent passwd github-mirror || useradd -r github-mirror -s /bin/false -d /run/github-mirror +mkdir -p /run/github-mirror +cd /etc/systemd/system +ln -s /git/bin/github-mirror.socket +ln -s /git/bin/github-mirror.service +systemctl daemon-reload |