Commit 01a292de83d0e4b588f2f4d61838c897cea41680
1 parent
e127258d
Exists in
r5_design
and in
1 other branch
Colab: Fix restart sequence.
Showing
1 changed file
with
5 additions
and
3 deletions
Show diff stats
colab/colab.spec
@@ -186,12 +186,14 @@ ln -s /var/lib/colab-assets /usr/share/nginx/colab | @@ -186,12 +186,14 @@ ln -s /var/lib/colab-assets /usr/share/nginx/colab | ||
186 | 186 | ||
187 | yes yes | colab-admin collectstatic | 187 | yes yes | colab-admin collectstatic |
188 | 188 | ||
189 | +if [ $1 -gt 1 ]; then | ||
190 | + # upgrade; restart if running | ||
191 | + systemctl try-restart colab | ||
192 | +fi | ||
193 | + | ||
189 | %postun | 194 | %postun |
190 | if [ $1 -eq 0 ]; then | 195 | if [ $1 -eq 0 ]; then |
191 | # package being removed | 196 | # package being removed |
192 | systemctl stop colab | 197 | systemctl stop colab |
193 | systemctl disable colab | 198 | systemctl disable colab |
194 | -else | ||
195 | - # upgrade | ||
196 | - systemctl try-restart colab | ||
197 | fi | 199 | fi |