diff options
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 | ||