diff options
author | Mike Fulbright <msf@redhat.com> | 2001-03-15 04:59:02 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-03-15 04:59:02 +0000 |
commit | 9e6704952da5e0694030e257cc9e9c1e27a11829 (patch) | |
tree | 20267e13eb6de4beef27dbc4fb3db948b0f492ea | |
parent | df0f55e2ebbaf471e0a1bbbd24bce32e33cd2c0d (diff) | |
download | anaconda-9e6704952da5e0694030e257cc9e9c1e27a11829.tar.gz anaconda-9e6704952da5e0694030e257cc9e9c1e27a11829.tar.xz anaconda-9e6704952da5e0694030e257cc9e9c1e27a11829.zip |
move reconfig log file to /var/log
-rw-r--r-- | anaconda_log.py | 5 | ||||
-rw-r--r-- | log.py | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/anaconda_log.py b/anaconda_log.py index 72e73bd9f..25f9163cd 100644 --- a/anaconda_log.py +++ b/anaconda_log.py @@ -9,7 +9,10 @@ class LogFile: def open (self, serial, reconfigOnly, test, setupFilesystems): if reconfigOnly: - self.logFile = open("/tmp/reconfig.log", "w") + try: + self.logFile = open("/var/log/reconfig.log", "w") + except: + self.logFile = sys.stderr elif not setupFilesystems: self.logFile = sys.stderr elif serial: @@ -9,7 +9,10 @@ class LogFile: def open (self, serial, reconfigOnly, test, setupFilesystems): if reconfigOnly: - self.logFile = open("/tmp/reconfig.log", "w") + try: + self.logFile = open("/var/log/reconfig.log", "w") + except: + self.logFile = sys.stderr elif not setupFilesystems: self.logFile = sys.stderr elif serial: |