Commit 54312b4bfb063e226265727b37c9942582e5171c
Committed by
Lucas Kanashiro
1 parent
370aa526
Exists in
master
and in
39 other branches
Create lock directory
Also move creation of assets symlink to the package build Signed-off-by: Alexandre Barbosa <alexandreab@live.com> Signed-off-by: Antonio Terceiro <terceiro@softwarelivre.org>
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
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 |
... | ... | @@ -179,9 +183,8 @@ fi |
179 | 183 | mkdir -p /var/lib/colab-assets |
180 | 184 | chown colab:colab /var/lib/colab-assets |
181 | 185 | |
182 | -mkdir -p /usr/share/nginx/ | |
183 | - | |
184 | -ln -s /var/lib/colab-assets /usr/share/nginx/colab | |
186 | +mkdir -p /var/lock/colab | |
187 | +chown colab:colab /var/lock/colab | |
185 | 188 | |
186 | 189 | if [ -f /etc/colab/settings.yaml ]; then |
187 | 190 | yes yes | colab-admin collectstatic | ... | ... |