forked from 0x2620/pandora
cleanup files that might be left over
This commit is contained in:
parent
5f87ba361a
commit
8f1a0c3047
1 changed files with 8 additions and 0 deletions
|
@ -168,6 +168,14 @@ if __name__ == "__main__":
|
||||||
if old <= 5389:
|
if old <= 5389:
|
||||||
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
run('./bin/pip', 'install', '-r', 'requirements.txt')
|
||||||
run('./pandora/manage.py', 'migrate', '--fake-initial', '--noinput')
|
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'
|
service = 'pandora'
|
||||||
print('Please install new init script for "%s" service:' % service)
|
print('Please install new init script for "%s" service:' % service)
|
||||||
if os.path.exists('/etc/init'):
|
if os.path.exists('/etc/init'):
|
||||||
|
|
Loading…
Reference in a new issue