From 0ca543240846cfeb91fd5491367f122f8cb395cc Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 1 Mar 2013 07:09:44 +0000 Subject: [PATCH] add notice to reload pandora after update. fixes #1326 --- update.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/update.py b/update.py index 6d3d2d0d..c6af5654 100755 --- a/update.py +++ b/update.py @@ -21,6 +21,8 @@ repos = { "oxtimelines": "http://code.0x2620.org/oxtimelines/", } +def reload_notice(base): + print '\nYou might need to restart pandora to finish the update:\n\t"sudo %s/reload.sh"\n' % base if __name__ == "__main__": base = os.path.normpath(os.path.abspath(os.path.dirname(__file__))) @@ -31,6 +33,7 @@ if __name__ == "__main__": print '\nRunning "./manage.py migrate"\n' run('./manage.py', 'migrate') run('./manage.py', 'sync_itemsort') + reload_notice(base) else: print "You are upgrading from an older version of pan.do/ra." print "Please use ./manage.py sqldiff -a to check for updates" @@ -75,3 +78,5 @@ if __name__ == "__main__": diff = get('./manage.py', 'sqldiff', '-a').strip() if diff != '-- No differences': print 'Database has changed, please make a backup and run ./update.py database' + else: + reload_notice(base)