From 01a292de83d0e4b588f2f4d61838c897cea41680 Mon Sep 17 00:00:00 2001 From: rodrigosiqueira Date: Tue, 1 Sep 2015 17:52:05 -0300 Subject: [PATCH] Colab: Fix restart sequence. --- colab/colab.spec | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/colab/colab.spec b/colab/colab.spec index dd59904..c4f22a6 100644 --- a/colab/colab.spec +++ b/colab/colab.spec @@ -186,12 +186,14 @@ ln -s /var/lib/colab-assets /usr/share/nginx/colab yes yes | colab-admin collectstatic +if [ $1 -gt 1 ]; then + # upgrade; restart if running + systemctl try-restart colab +fi + %postun if [ $1 -eq 0 ]; then # package being removed systemctl stop colab systemctl disable colab -else - # upgrade - systemctl try-restart colab fi -- libgit2 0.21.2