mirror of
https://github.com/varunsridharan/github-gitea-mirror.git
synced 2024-08-16 13:20:34 +03:00
Improved
This commit is contained in:
parent
9067fe8702
commit
0ba8015e5c
@ -57,7 +57,7 @@ Or you can download the source code and install it where ever you need
|
|||||||
## Cron Setup
|
## Cron Setup
|
||||||
1. Run `crontab -e`
|
1. Run `crontab -e`
|
||||||
2. `mkdir $HOME/mirrorLogs -p`
|
2. `mkdir $HOME/mirrorLogs -p`
|
||||||
2. `/usr/bin/python3 $HOME/github-to-gitea-mirror/mirror.py > $HOME/mirrorLogs/`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log 2>&1`
|
3. `/usr/bin/python3 $HOME/github-to-gitea-mirror/mirror.py > $HOME/mirrorLogs/`date +\%Y-\%m-\%d-\%H-\%M-\%S`.log 2>&1`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
4
gist.py
4
gist.py
@ -1,6 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
sys.path.insert(1, './src/')
|
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))
|
||||||
|
|
||||||
from helper import getConfig,log
|
from helper import getConfig,log
|
||||||
from gistsSource import gistsSource
|
from gistsSource import gistsSource
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
sys.path.insert(1, './src/')
|
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))
|
||||||
|
|
||||||
from helper import log,getConfig
|
from helper import log,getConfig
|
||||||
from gistsStared import gistsStared
|
from gistsStared import gistsStared
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
sys.path.insert(1, './src/')
|
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))
|
||||||
|
|
||||||
from helper import log,getConfig
|
from helper import log,getConfig
|
||||||
from repositoryForked import repositoryForked
|
from repositoryForked import repositoryForked
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
sys.path.insert(1, './src/')
|
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))
|
||||||
|
|
||||||
from helper import log,getConfig
|
from helper import log,getConfig
|
||||||
from repositorySource import repositorySource
|
from repositorySource import repositorySource
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
|
|
||||||
sys.path.insert(1, './src/')
|
THIS_FOLDER = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
sys.path.insert(1, "{0}/src/".format(THIS_FOLDER))
|
||||||
|
|
||||||
from helper import log,getConfig
|
from helper import log,getConfig
|
||||||
from repositoryStared import repositoryStared
|
from repositoryStared import repositoryStared
|
||||||
|
Loading…
Reference in New Issue
Block a user