From aaa27b72d7ca00282e121cd7e030721c3213c453 Mon Sep 17 00:00:00 2001 From: Rokin Date: Mon, 14 Feb 2022 13:01:33 +0100 Subject: [PATCH] update README --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 06e70f9..c300ad4 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,21 @@ # g2g Simple Gitea hook / service who mirroring all your Gitea repo to Github (with git push --mirror). -*Tested only on Alpine-Linux with Gitea server. * +*Tested only on Alpine-Linux with Gitea server.* + The script requires bash, jq, curl, grep and git. + This should be easily adapted to other distributions without too many modifications, it should certainly be necessary to modify the location where the cronjob is installed (/etc/periodic/15min) for Debian/Arch/... based system. + **BE VERY CAREFUL !! : If a Github repo already exists with the same name as a Gitea repo but with different content, the whole Github repository will be overwritten !** + ### How the hook is triggered : - Every 15min, a cronjob install the hook in the repos of the configured . @@ -34,10 +38,12 @@ If a Github repo already exists with the same name as a Gitea repo but with diff *(The creation of Github repositories and the retrieval of information from Gitea repositories is done through the official API with curl).* + + #### Install ``` apk add bash jq curl grep -wget https://git.rokin.in/Rokin/gitea2github/raw/branch/master/g2g.sh +wget "https://git.rokin.in/Rokin/gitea2github/raw/branch/master/g2g.sh" cp -f g2g.sh /usr/bin/g2g chown root:root /usr/bin/g2g chmod 755 /usr/bin/g2g