26 lines
591 B
Python
26 lines
591 B
Python
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')
|