blob: 4506f1bc4f1825c3d4adfe61bf4f67c0a5322560 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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')
|