cleanup files that might be left over

This commit is contained in:
j 2016-02-20 18:06:05 +05:30
parent 5f87ba361a
commit 8f1a0c3047
1 changed files with 8 additions and 0 deletions

View File

@ -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'):