From 2ebc58d0c7e0b74788751aefc9e9246c7eec91ac Mon Sep 17 00:00:00 2001 From: j Date: Sat, 20 Feb 2016 05:36:47 +0000 Subject: [PATCH] update dependencies and inital db migration --- update.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/update.py b/update.py index f9ca55475..112c43126 100755 --- a/update.py +++ b/update.py @@ -165,6 +165,16 @@ if __name__ == "__main__": if os.path.exists('.bzr'): shutil.rmtree('.bzr') run('git', 'checkout', 'update.py') + if old <= 5389: + run('./bin/pip', 'install', '-r', 'requirements.txt') + run('./pandora/manage.py', 'migrate', '--fake-initial') + service = 'pandora' + print('Please install new init script for "%s" service:' % service) + if os.path.exists('/etc/init'): + print('\tsudo cp %s/etc/init/%s.conf /etc/init/' % (base, service)) + if os.path.exists('/lib/systemd/system'): + print('\tsudo cp %s/etc/systemd/%s.service /lib/systemd/system/' % (base, service)) + print('\tsudo service %s restart' % service) else: if len(sys.argv) == 1: release = get_release()