ASInstaller/profiles/applications/mariadb.py
2022-10-31 14:49:48 +08:00

12 lines
437 B
Python

import archinstall
# Define the package list in order for lib to source
# which packages will be installed by this profile
__packages__ = ["mariadb"]
archinstall.storage['installation_session'].add_additional_packages(__packages__)
archinstall.storage['installation_session'].arch_chroot("mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql")
archinstall.storage['installation_session'].enable_service('mariadb')