Allow installer deactivation
Signed-off-by: Héctor Molinero Fernández <hector@molinero.dev>
This commit is contained in:
parent
52015014b4
commit
7cf0a2ef4b
2
setup.py
2
setup.py
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
from distutils.util import strtobool
|
||||||
import os
|
import os
|
||||||
import glob
|
import glob
|
||||||
import shutil
|
import shutil
|
||||||
@ -43,6 +44,7 @@ def installer():
|
|||||||
os.system("systemctl enable fstrim.timer")
|
os.system("systemctl enable fstrim.timer")
|
||||||
|
|
||||||
|
|
||||||
|
if strtobool(os.environ.get("PWNAGOTCHI_ENABLE_INSTALLER", "1")):
|
||||||
installer()
|
installer()
|
||||||
|
|
||||||
with open('requirements.txt') as fp:
|
with open('requirements.txt') as fp:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user