mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
32 lines
564 B
Text
32 lines
564 B
Text
pre_install() {
|
|
/bin/true
|
|
}
|
|
|
|
post_install() {
|
|
groupadd osecgroup
|
|
useradd -G osecgroup -d /var/lib/osec osec
|
|
chown -R osec.osecgroup /var/lib/osec
|
|
echo "-- Use osec -D /var/lib/osec -u osec -g osecgroup -f /etc/osec/dirs.conf | osec_reporter"
|
|
}
|
|
|
|
pre_upgrade() {
|
|
/bin/true
|
|
}
|
|
|
|
post_upgrade() {
|
|
chown -R osec.osecgroup /var/lib/osec
|
|
echo "-- Use osec -D /var/lib/osec -u osec -g osecgroup -f /etc/osec/dirs.conf | osec_reporter"
|
|
}
|
|
|
|
pre_remove() {
|
|
/bin/true
|
|
}
|
|
|
|
post_remove() {
|
|
userdel osec
|
|
groupdel osecgroup
|
|
}
|
|
|
|
op=$1
|
|
shift
|
|
$op $*
|