blob: d81a9a048844a8dd8d6a45bde61c090b8148351b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
USER=backup
GROUP=backup
pre_install() {
# Create User/Group
getent group ${GROUP} > /dev/null || groupadd --system ${GROUP}
getent passwd ${USER} > /dev/null || useradd --system --gid ${USER} --home-dir /dev/null --shell /sbin/nologin --no-create-home ${USER}
}
post_install() {
chown -R ${USER}:${GROUP} /etc/mysql-db-backup/
chown -R ${USER}:${GROUP} /usr/share/mysql-db-backup/
chown -R ${USER}:${GROUP} /var/log/mysql-db-backup
}
|