blob: 744082831efef0a0ef0d1acd682fce565ffe3d63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
pkgname=atelierb
post_install() {
getent passwd atelierb >/dev/null 2>&1 || usr/sbin/useradd -c 'Atelir B' -u 2000 -g users -d /opt/atelierb -s /sbin/nologin atelierb
passwd -l atelierb > /dev/null
chown -R atelierb:users /opt/atelierb > /dev/null
}
pre_upgrade() {
echo ""
}
pre_remove() {
echo ""
}
post_upgrade() {
post_install
}
post_remove() {
getent passwd atelierb >/dev/null 2>&1 || userdel atelierb
}
|