summaryrefslogtreecommitdiff
path: root/pcr/perspectives-server/perspectives-server.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-02-09 20:11:45 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-02-09 20:11:45 -0300
commit4be5309ee3989d582faad90f46c934352eff82f0 (patch)
tree83ec48649316520026ea12f46fd7b501ac6bde31 /pcr/perspectives-server/perspectives-server.install
parenta563eee81e9abd42251117d8cd74738e23e0fe70 (diff)
downloadabslibre-4be5309ee3989d582faad90f46c934352eff82f0.tar.gz
abslibre-4be5309ee3989d582faad90f46c934352eff82f0.tar.bz2
abslibre-4be5309ee3989d582faad90f46c934352eff82f0.zip
Perspectives Server
Diffstat (limited to 'pcr/perspectives-server/perspectives-server.install')
-rw-r--r--pcr/perspectives-server/perspectives-server.install27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/perspectives-server/perspectives-server.install b/pcr/perspectives-server/perspectives-server.install
new file mode 100644
index 000000000..d07664cb7
--- /dev/null
+++ b/pcr/perspectives-server/perspectives-server.install
@@ -0,0 +1,27 @@
+_chown() {
+ chown -R perspectives:perspectives \
+ /usr/share/webapps/perspectives-server \
+ /etc/webapps/perspectives-server \
+ /etc/conf.d/perspectives-server.conf
+}
+
+post_install() {
+ groupadd --system perspectives
+
+ useradd --system \
+ --comment "Perspectives Notary Server" \
+ --gid perspectives \
+ --home /usr/share/webapps/perspectives-server -M \
+ --shell /bin/false \
+ perspectives &>/dev/null
+ _chown
+}
+
+post_upgrade() {
+ _chown
+}
+
+post_remove() {
+ userdel perspectives
+ groupdel perspectives
+}