diff --git a/setup.py b/setup.py index 7abebe83..b6dd2f3a 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- from setuptools import setup, find_packages +from distutils.util import strtobool import os import glob import shutil @@ -43,7 +44,8 @@ def installer(): os.system("systemctl enable fstrim.timer") -installer() +if strtobool(os.environ.get("PWNAGOTCHI_ENABLE_INSTALLER", "1")): + installer() with open('requirements.txt') as fp: required = [line.strip() for line in fp if line.strip() != ""]