Skip to content

Commit

Permalink
dropped updategeoip task
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy committed Aug 8, 2023
1 parent 1ef6ec9 commit 17410c0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
1 change: 0 additions & 1 deletion src/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ else

if [ ${FORCE_REINIT} = "true" ] || [ ${FORCE_REINIT} = "True" ] || [ ! -e "/mnt/volumes/statics/geonode_init.lock" ]; then
echo "LOG INIT" > /usr/src/{{project_name}}/invoke.log
invoke updategeoip
invoke fixtures
invoke monitoringfixture
invoke initialized
Expand Down
31 changes: 0 additions & 31 deletions src/pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,21 +298,6 @@ def static(options):
sh('grunt production')


@task
@needs([
'setup_geoserver',
])
def setup(options):
"""Get dependencies and prepare a GeoNode development environment."""

if MONITORING_ENABLED:
updategeoip(options)

info('GeoNode development environment successfully set up.'
'If you have not set up an administrative account,'
' please do so now. Use "paver start" to start up the server.')


def grab_winfiles(url, dest, packagename):
# Add headers
headers = {'User-Agent': 'Mozilla 5.10'}
Expand Down Expand Up @@ -377,22 +362,6 @@ def upgradedb(options):
print(f"Upgrades from version {version} are not yet supported.")


@task
@cmdopts([
('settings=', 's', 'Specify custom DJANGO_SETTINGS_MODULE')
])
def updategeoip(options):
"""
Update geoip db
"""
if MONITORING_ENABLED:
settings = options.get('settings', '')
if settings and 'DJANGO_SETTINGS_MODULE' not in settings:
settings = f'DJANGO_SETTINGS_MODULE={settings}'

sh(f"{settings} python -W ignore manage.py updategeoip -o")


@task
@cmdopts([
('settings=', 's', 'Specify custom DJANGO_SETTINGS_MODULE')
Expand Down
7 changes: 0 additions & 7 deletions src/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,6 @@ def monitoringfixture(ctx):
logger.error(f"ERROR installing monitoring fixture: {str(e)}")


@task
def updategeoip(ctx):
print("**************************update geoip*******************************")
if ast.literal_eval(os.environ.get('MONITORING_ENABLED', 'False')):
ctx.run(f"django-admin.py updategeoip --settings={_localsettings()}", pty=True)


@task
def updateadmin(ctx):
print("***********************update admin details**************************")
Expand Down

0 comments on commit 17410c0

Please sign in to comment.