Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
isv:metal3:BCI:ironic
mariadb
configure-nonroot.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File configure-nonroot.sh of Package mariadb
#!/usr/bin/bash set -eux NONROOT_UID=10060 NONROOT_GID=10060 DATADIR="/var/lib/mysql/data" RUNDIR="/run/mysql" LOGDIR="/var/log/mysql" USER="mysql-suse" mkdir -p "${DATADIR}" mkdir -p "${RUNDIR}" groupadd -r -g ${NONROOT_GID} ${USER} useradd -r -g ${NONROOT_GID} \ -u ${NONROOT_UID} \ -d ${DATADIR} \ -s /sbin/nologin \ ${USER} mkdir -p /certs chgrp -R "${NONROOT_GID}" /certs chmod 2775 /certs chgrp -R "${NONROOT_GID}" /etc/my.cnf.d chmod 2775 /etc/my.cnf.d chown "${NONROOT_UID}":"${NONROOT_GID}" "${DATADIR}" chmod -R g+w "${DATADIR}" chown "${NONROOT_UID}":"${NONROOT_GID}" "${RUNDIR}" chmod -R g+w "${RUNDIR}" chown "${NONROOT_UID}":"${NONROOT_GID}" "${LOGDIR}" chmod -R g+w "${LOGDIR}"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor