diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 15:14:09 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 15:14:09 +0000 |
commit | aaf45e0a3c06c7affeae2b412bb8db99e9ce3d86 (patch) | |
tree | fad75c483afa128e43644a9e90387d52e693aaf1 /src/backend/setprofile.py | |
parent | fafff14908697a1e1d45cd8db1be2fe5cf8a4153 (diff) |
move syncDatabase -> syncdb
Diffstat (limited to 'src/backend/setprofile.py')
-rw-r--r-- | src/backend/setprofile.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/backend/setprofile.py b/src/backend/setprofile.py new file mode 100644 index 0000000..3a7f5e3 --- /dev/null +++ b/src/backend/setprofile.py @@ -0,0 +1,18 @@ +#!/usr/bin/python3 + +import animation +import platform +import subprocess + +@animation.wait('setting up profile') +def cliExec(): + if platform.uname()[4] == 'x86_64': + eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/amd64/17.1/hardened']) + eselectExec.wait() + + if platform.uname()[4] == 'aarch64': + eselectExec = subprocess.Popen(['eselect', 'profile', 'set', 'default/linux/arm64/17.0']) + eselectExec.wait() + + envExec = subprocess.Popen(['env-update'], stdout=subprocess.DEVNULL) + envExec.wait() |