diff --git a/update.py b/update.py index 55662d31..74c4cc57 100755 --- a/update.py +++ b/update.py @@ -168,6 +168,14 @@ if __name__ == "__main__": if old <= 5389: run('./bin/pip', 'install', '-r', 'requirements.txt') run('./pandora/manage.py', 'migrate', '--fake-initial', '--noinput') + if os.path.exists('contrib'): + shutil.rmtree('contrib') + for path in ( + 'lib/python2.7/site-packages/Django.egg-link', + 'lib/python2.7/site-packages/django-extensions.egg-link' + ): + if os.path.exists(path): + os.unlink(path) service = 'pandora' print('Please install new init script for "%s" service:' % service) if os.path.exists('/etc/init'):