From 9539e58ae7653ffa5ef25cf7b18c67d705813334 Mon Sep 17 00:00:00 2001 From: Cullum Smith Date: Thu, 27 Mar 2025 22:30:15 -0400 Subject: more mysql stuff --- scripts/hostclass/desktop | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/hostclass/desktop') diff --git a/scripts/hostclass/desktop b/scripts/hostclass/desktop index c85ef28..0195b3d 100644 --- a/scripts/hostclass/desktop +++ b/scripts/hostclass/desktop @@ -6,6 +6,8 @@ : ${cups_host:='cups'} : ${ublock_whitelist:=''} : ${chrome_flags:=''} +: ${digikam_db_users:=''} +: ${digikam_db_host:="$mysql_host"} sddm_user=sddm cups_conf_dir=/usr/local/etc/cups @@ -181,3 +183,9 @@ install_template -m 0644 /usr/local/etc/mpv/mpv.conf # Start login manager. service sddm status || service sddm start > /dev/null 2>&1 < /dev/null || die 'failed to start sddm' + +# Create users for digikam db. +for user in $digikam_db_users; do + mysql_create_user "$digikam_db_host" "$user" gssapi + mysql_create_database "$digikam_db_host" digikam "$user" +done -- cgit v1.2.3