]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding etc/profile.d/pp-admintools.sh for installation in setup.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Dec 2021 10:35:25 +0000 (11:35 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Thu, 9 Dec 2021 10:35:25 +0000 (11:35 +0100)
setup.py

index a3eb47d39d609380bb0274b0e5fcdf659f4e6cb1..dcce271e58415da422e7e93ef70c629e0dcd6d62 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -143,14 +143,15 @@ __scripts__ = [
 __data_files__ = []
 __admin_scripts__ = []
 
-__data_files__.append(('etc/pixelpark', ['etc/dns-deploy-zones.ini.default']))
+__data_files__.append(('/etc/pixelpark', ['etc/dns-deploy-zones.ini.default']))
+__data_files__.append(('/etc/profile.d', ['etc/profile.d/pp-admintools.sh']))
 
 for f in __script_dir__.glob('*'):
     if f.is_file():
         relpath = os.path.relpath(str(f), str(__base_dir__))
         __admin_scripts__.append(relpath)
 if __admin_scripts__:
-    __data_files__.append(('usr/libexec/pixelpark', __admin_scripts__))
+    __data_files__.append(('/usr/libexec/pixelpark', __admin_scripts__))
 
 # print("Found data files:\n" + pp(__data_files__) + "\n")