diff options
author | Mac Mollison <mollison@cs.unc.edu> | 2010-03-14 04:30:31 -0400 |
---|---|---|
committer | Mac Mollison <mollison@cs.unc.edu> | 2010-03-14 04:30:31 -0400 |
commit | ecc35d07ec93109310ad23b64b6842505f8a210b (patch) | |
tree | fe5a9364f7c4cd0b5a692d7d1f4c5dd7fc7dfc5d /install.py | |
parent | c8210c3cef340e8280658e847cc70958be77eb26 (diff) |
Installation improvements
unit-trace.py -> unit-trace and placed in
/usr/bin
Diffstat (limited to 'install.py')
-rwxr-xr-x | install.py | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -43,5 +43,14 @@ except: | |||
43 | print("Error occurred. Make sure you run the script as root/with sudo.") | 43 | print("Error occurred. Make sure you run the script as root/with sudo.") |
44 | exit() | 44 | exit() |
45 | 45 | ||
46 | # Determine destination directory for unit-trace script | ||
47 | dst = '/usr/bin/unit-trace' | ||
48 | try: | ||
49 | shutil.copyfile('unit-trace', dst) | ||
50 | # Keep same permissions | ||
51 | shutil.copystat('unit-trace', dst) | ||
52 | except: | ||
53 | print("Error occurred. Make sure you run the script as root/with sudo.") | ||
54 | exit() | ||
46 | 55 | ||
47 | 56 | ||