Merge Request #30

Merged
softwarepublico/colab!30
Created by Lucas Kanashiro

RPM update

Fix integration with Mailman and added BROWSERID_ENABLED variable in default settings.yaml

Assignee: Sergio Oliveira
Milestone: None

Merged by Sergio Oliveira

Source branch has been removed
Commits (3)
2 participants
colab.spec
... ... @@ -46,6 +46,9 @@ find %{buildvenv} -type d -empty -delete
46 46 mkdir -p %{buildroot}/etc/colab
47 47 mkdir -p %{buildroot}/usr/lib
48 48  
  49 +mkdir -p %{buildroot}/usr/share/nginx/
  50 +ln -s /var/lib/colab-assets %{buildroot}/usr/share/nginx/colab
  51 +
49 52 # install virtualenv
50 53 rm -rf %{buildroot}/usr/lib/colab
51 54 cp -r %{buildvenv} %{buildroot}/usr/lib/colab
... ... @@ -78,6 +81,7 @@ rm -rf %{buildvenv}
78 81 %{_bindir}/*
79 82 /etc/cron.d/colab
80 83 /lib/systemd/system/colab.service
  84 +/usr/share/nginx/colab
81 85  
82 86 %post
83 87 groupadd colab || true
... ... @@ -85,6 +89,8 @@ if ! id colab; then
85 89 useradd --system --gid colab --home-dir /usr/lib/colab --no-create-home colab
86 90 fi
87 91  
  92 +usermod --append --groups mailman colab
  93 +
88 94 # only applies if there is a local PostgreSQL server
89 95 if [ -x /usr/bin/postgres ]; then
90 96  
... ... @@ -151,6 +157,9 @@ ROBOTS_NOINDEX: false
151 157 #PROXIED_APPS:
152 158 # gitlab:
153 159 # upstream: 'http://localhost:8080/gitlab/'
  160 +
  161 +## Enabled BROWSER_ID protocol
  162 +# BROWSERID_ENABLED: True
154 163 EOF
155 164 chown root:colab /etc/colab/settings.yaml
156 165 chmod 0640 /etc/colab/settings.yaml
... ... @@ -179,9 +188,8 @@ fi
179 188 mkdir -p /var/lib/colab-assets
180 189 chown colab:colab /var/lib/colab-assets
181 190  
182   -mkdir -p /usr/share/nginx/
183   -
184   -ln -s /var/lib/colab-assets /usr/share/nginx/colab
  191 +mkdir -p /var/lock/colab
  192 +chown colab:colab /var/lock/colab
185 193  
186 194 if [ -f /etc/colab/settings.yaml ]; then
187 195 yes yes | colab-admin collectstatic
... ...