Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/profiles/server.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-15 17:49:58 +0000
committerGitHub <noreply@github.com>2021-05-15 17:49:58 +0000
commita75dd6ea3a4f961ddfeaff6b4378bd4aac5c3b39 (patch)
tree7db58a8b4e1c640dc16d0060704f3b304a4e325d /profiles/server.py
parent5254ac62200bb279c855d06bea1006b323bfae87 (diff)
parent5067aaa260d218f7d1d60ada2fe8413e90970060 (diff)
Merge pull request #447 from dylanmtaylor/formatting
Very selectively fix some PEP 8 issues and other manual formatting changes
Diffstat (limited to 'profiles/server.py')
-rw-r--r--profiles/server.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/profiles/server.py b/profiles/server.py
index d0346ace..afc37776 100644
--- a/profiles/server.py
+++ b/profiles/server.py
@@ -1,11 +1,14 @@
# Used to select various server application profiles on top of a minimal installation.
-import archinstall, os, logging
+import logging
+
+import archinstall
is_top_level_profile = True
available_servers = ["cockpit", "docker", "httpd", "lighttpd", "mariadb", "nginx", "postgresql", "sshd", "tomcat"]
+
def _prep_function(*args, **kwargs):
"""
Magic function called by the importing installer
@@ -13,9 +16,10 @@ def _prep_function(*args, **kwargs):
"""
selected_servers = archinstall.generic_multi_select(available_servers, f"Choose which servers to install and enable (leave blank for a minimal installation): ")
archinstall.storage['_selected_servers'] = selected_servers
-
+
return True
+
if __name__ == 'server':
"""
This "profile" is a meta-profile.