blob: 9734369f2332c37a6318fa30ea17bd67680ec8f4 (
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
26
27
28
29
30
31
32
|
post_install() {
groupadd zotonic
useradd -r -g zotonic -d /var/lib/zotonic zotonic
chown -R root:zotonic /etc/zotonic
chown -R zotonic:zotonic /var/lib/zotonic
chown -R zotonic:zotonic /var/log/zotonic
echo "###########################################"
echo "# - Edit /etc/zotonic/config to configure #"
echo "# Zotonic. #"
echo "# - Setup sites in /var/lib/zotonic/priv. #"
echo "# - Apply necessary modifications to #"
echo "# Postgresql's configuration and any #"
echo "# other package you want to interact #"
echo "# with Zotonic. #"
echo "# - Visit to http://zotonic.com for more #"
echo "# details on these tasks. #"
echo "###########################################"
echo "# Zotonic might take a lot of time on its #"
echo "# first run, as it will generate the #"
echo "# Erlang byte-code from source. #"
echo "###########################################"
echo "# Admin page: #"
echo "# http://127.0.0.1:8000 #"
echo "# https://127.0.0.1:8443 #"
echo "###########################################"
}
post_remove() {
rm -rf /var/{lib,log}/zotonic
userdel zotonic
groupdel zotonic
}
|