blob: 4de047b81b004e07f9a26548cd5438dcbb022086 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
post_install() {
egrep backupfs /etc/group >/dev/null || groupadd -g 65530 backupfs
egrep backupfs /etc/passwd >/dev/null || \
useradd -u 65530 -g 65530 -d /home/backupfs -s /usr/bin/backupfs-shell -c 'backupfs, daily backup system' backupfs
chown backupfs:backupfs /usr/bin/{backupfs,backupfs{-remote,-chksrc,-exctar,-mkdir,-mklink,-shell,-hist}}
chown backupfs:backupfs /usr/bin/newfiles
}
post_upgrade() {
post_install $1
}
pre_remove() {
sed -i '/backupfs:x:65530:/d' etc/group
sed -i '/backupfs:x:65530:/d' etc/passwd
}
|