From 2f45ce35d7a6e607cac45789c862d22f6919acd2 Mon Sep 17 00:00:00 2001 From: programmerjake Date: Thu, 26 Mar 2020 01:18:29 +0000 Subject: [PATCH] git mirroring WIP --- resources/server-setup/git-mirroring.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/server-setup/git-mirroring.rst b/resources/server-setup/git-mirroring.rst index ff9062401..26f4baa8c 100644 --- a/resources/server-setup/git-mirroring.rst +++ b/resources/server-setup/git-mirroring.rst @@ -6,25 +6,25 @@ Steps for setting up automatic mirroring cron jobs: * Add a new user: - .. code-block:: bash + .. code:: bash sudo adduser --disabled-login --system git-mirroring -* Start a shell as the `git-mirroring` user: +* Start a shell as the :code:`git-mirroring` user: - .. code-block:: bash + .. code:: bash sudo -H -u git-mirroring /bin/bash * Switch to home directory: - .. code-block:: bash + .. code:: bash cd -* Create an executable file `sync.sh` (replace `nano` with the editor of your choice): +* Create an executable file :code:`sync.sh` (replace :code:`nano` with the editor of your choice): - .. code-block:: bash + .. code:: bash touch sync.sh chmod +x sync.sh @@ -32,7 +32,7 @@ Steps for setting up automatic mirroring cron jobs: * Type in the following contents: - .. code-block:: bash + .. code:: bash #!/bin/sh for repo in ~/*.git; do @@ -43,7 +43,7 @@ Steps for setting up automatic mirroring cron jobs: * Create a ssh key: - .. code-block:: bash + .. code:: bash ssh-keygen @@ -57,4 +57,4 @@ Steps for setting up automatic mirroring cron jobs: Following these steps will overwrite anything that is in the GitLab repo. - * Add the + * Add the ssh key for the -- 2.30.2