fix packaging and installation/uninstallation

This commit is contained in:
2020-11-05 02:00:27 +01:00
parent ce2bf53e21
commit 7a5ea6817e
4 changed files with 6 additions and 6 deletions

View File

@@ -1,3 +1,3 @@
include LICENSE README.md
recursive-include docs *
recursive-include misc *
recursive-include pyinotifyd/docs *
recursive-include pyinotifyd/misc *

View File

@@ -19,7 +19,7 @@ import os
import shutil
import sys
SYSTEMD_PATH = "/usr/lib/systemd/system"
SYSTEMD_PATH = "/lib/systemd/system"
def _check_root():
@@ -77,9 +77,9 @@ def install(name):
logging.error(f"unable to copy config file to {dst}: {e}")
sys.exit(4)
else:
logging.info("example config file copied to {dst}")
logging.info(f"example config file copied to {dst}")
logging.info("{name} successfully installed")
logging.info(f"{name} successfully installed")
def uninstall(name):
@@ -105,4 +105,4 @@ def uninstall(name):
logging.warning(
f"config dir {config_dir} still exists, please delete manually")
logging.info("{name} successfully uninstalled")
logging.info(f"{name} successfully uninstalled")