summaryrefslogtreecommitdiff
path: root/community/osec/osec.install
diff options
context:
space:
mode:
Diffstat (limited to 'community/osec/osec.install')
-rw-r--r--community/osec/osec.install16
1 files changed, 16 insertions, 0 deletions
diff --git a/community/osec/osec.install b/community/osec/osec.install
new file mode 100644
index 000000000..6d16f9444
--- /dev/null
+++ b/community/osec/osec.install
@@ -0,0 +1,16 @@
+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"
+}
+
+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"
+}
+
+post_remove() {
+ userdel osec
+ groupdel osecgroup
+}