mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 10:58:01 -05:00
Added restore folder to gitignore list.
This commit is contained in:
parent
2b7df8e67d
commit
b9c22582cf
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@ failed.db*
|
||||
autoProcessTV/autoProcessTV.cfg
|
||||
server.crt
|
||||
server.key
|
||||
restore/
|
||||
|
||||
# SB Test Related #
|
||||
######################
|
||||
|
16
SickBeard.py
16
SickBeard.py
@ -192,14 +192,6 @@ def main():
|
||||
# Rename the main thread
|
||||
threading.currentThread().name = "MAIN"
|
||||
|
||||
# Check if we need to perform a restore first
|
||||
restoreDir = os.path.join(sickbeard.PROG_DIR, 'restore')
|
||||
if os.path.exists(restoreDir):
|
||||
if restore(restoreDir, sickbeard.PROG_DIR):
|
||||
print "Restore successful..."
|
||||
else:
|
||||
print "Restore FAILED!"
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "qfdp::",
|
||||
['quiet', 'forceupdate', 'daemon', 'port=', 'pidfile=', 'nolaunch', 'config=',
|
||||
@ -277,6 +269,14 @@ def main():
|
||||
|
||||
sickbeard.CREATEPID = False
|
||||
|
||||
# Check if we need to perform a restore first
|
||||
restoreDir = os.path.join(sickbeard.PROG_DIR, 'restore')
|
||||
if os.path.exists(restoreDir):
|
||||
if restore(restoreDir, sickbeard.PROG_DIR):
|
||||
logger.log(u"Restore successful...")
|
||||
else:
|
||||
logger.log(u"Restore FAILED!")
|
||||
|
||||
# If they don't specify a config file then put it in the data dir
|
||||
if not sickbeard.CONFIG_FILE:
|
||||
sickbeard.CONFIG_FILE = os.path.join(sickbeard.DATA_DIR, "config.ini")
|
||||
|
Loading…
Reference in New Issue
Block a user