Commit 01a292de83d0e4b588f2f4d61838c897cea41680
1 parent
e127258d
Exists in
master
and in
79 other branches
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 | 186 | |
187 | 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 | 194 | %postun |
190 | 195 | if [ $1 -eq 0 ]; then |
191 | 196 | # package being removed |
192 | 197 | systemctl stop colab |
193 | 198 | systemctl disable colab |
194 | -else | |
195 | - # upgrade | |
196 | - systemctl try-restart colab | |
197 | 199 | fi | ... | ... |