We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe32877 commit 89de5f2Copy full SHA for 89de5f2
1 file changed
bin/upgrade
@@ -1,6 +1,6 @@
1
#!/usr/bin/env python
2
-import os
3
import argparse
+import os
4
import subprocess
5
import sys
6
from collections import namedtuple
@@ -111,7 +111,10 @@ def restart_services():
111
# otherwise it won't notice that /opt/redash/current pointing at a different
112
# directory.
113
green("Restarting...")
114
- run('sudo /etc/init.d/redash_supervisord restart')
+ try:
115
+ run('sudo /etc/init.d/redash_supervisord restart')
116
+ except subprocess.CalledProcessError as e:
117
+ run('sudo service supervisor restart')
118
119
120
def update_requirements(version_name):
0 commit comments