This commit is contained in:
Varun 2020-10-13 10:53:34 +05:30
parent 9067fe8702
commit 0ba8015e5c
No known key found for this signature in database
GPG Key ID: 93FB46DCF16E0D6F
6 changed files with 16 additions and 6 deletions

View File

@ -57,7 +57,7 @@ Or you can download the source code and install it where ever you need
## Cron Setup
1. Run `crontab -e`
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`
---

View File

@ -1,6 +1,8 @@
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 gistsSource import gistsSource

View File

@ -1,6 +1,8 @@
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 gistsStared import gistsStared

View File

@ -1,6 +1,8 @@
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 repositoryForked import repositoryForked

View File

@ -1,6 +1,8 @@
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 repositorySource import repositorySource

View File

@ -1,6 +1,8 @@
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 repositoryStared import repositoryStared