Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/default_profiles/servers/mariadb.py
diff options
context:
space:
mode:
Diffstat (limited to 'archinstall/default_profiles/servers/mariadb.py')
-rw-r--r--archinstall/default_profiles/servers/mariadb.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/archinstall/default_profiles/servers/mariadb.py b/archinstall/default_profiles/servers/mariadb.py
new file mode 100644
index 00000000..4506f1bc
--- /dev/null
+++ b/archinstall/default_profiles/servers/mariadb.py
@@ -0,0 +1,25 @@
+from typing import List, TYPE_CHECKING
+
+from archinstall.default_profiles.profile import Profile, ProfileType
+
+if TYPE_CHECKING:
+ from archinstall.lib.installer import Installer
+
+
+class MariadbProfile(Profile):
+ def __init__(self):
+ super().__init__(
+ 'Mariadb',
+ ProfileType.ServerType
+ )
+
+ @property
+ def packages(self) -> List[str]:
+ return ['mariadb']
+
+ @property
+ def services(self) -> List[str]:
+ return ['mariadb']
+
+ def post_install(self, install_session: 'Installer'):
+ install_session.arch_chroot('mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql')