Compare commits
No commits in common. "92951c3aad01a9d185ca18bb7be5f93ccd52bfaf" and "92c9cedeb7c38d2a7540f244dda0e028ba2f2699" have entirely different histories.
92951c3aad
...
92c9cedeb7
6
setup.py
6
setup.py
@ -10,8 +10,14 @@ AUTHOR = 'Thomas Klaehn'
|
||||
EMAIL = 'tkl@blackfinn.de'
|
||||
PACKAGES = ['weblight']
|
||||
SCRIPTS = ['start-weblight']
|
||||
SERVICEDIR = "/lib/systemd/system"
|
||||
REQUIRES = ['Flask', 'RPi.GPIO']
|
||||
DAEMON_START_SCRIPT = os.path.join(SERVICEDIR, 'weblight.service')
|
||||
|
||||
if sys.argv[1] == 'install':
|
||||
os.makedirs(SERVICEDIR, exist_ok=True)
|
||||
shutil.copyfile('weblight.service', DAEMON_START_SCRIPT)
|
||||
os.chmod(DAEMON_START_SCRIPT, stat.S_IRUSR | stat.S_IWUSR | stat.S_IRGRP | stat.S_IROTH)
|
||||
|
||||
setup(name=NAME, version=VERSION, long_description=__doc__, author=AUTHOR, author_email=EMAIL,
|
||||
packages=PACKAGES, scripts=SCRIPTS, include_package_data=True, zip_safe=False,
|
||||
|
Loading…
Reference in New Issue
Block a user