diff --git a/Vagrantfile b/Vagrantfile
deleted file mode 100644
index 89ca3946..00000000
--- a/Vagrantfile
+++ /dev/null
@@ -1,70 +0,0 @@
-$geonode_source_path='.'
-
-$script1 = <<-'SCRIPT'
-#!/bin/bash
-
-export DEBIAN_FRONTEND="noninteractive"
-
-if [ ! -f '/usr/local/bin/docker-compose' ]; then
- sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
-fi
-
-sudo apt-get install -y \
- apt-transport-https \
- ca-certificates \
- curl \
- gnupg \
- lsb-release
-curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-echo \
- "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
- $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-sudo apt-get update
-sudo apt-get -y install docker-ce docker-ce-cli containerd.io pwgen python3-pip python3-virtualenv virtualenvwrapper
-sudo adduser vagrant docker
-SCRIPT
-
-$script2 = <<-'SCRIPT'
-#!/bin/bash
-if [ -d "/home/vagrant/generated-project" ]; then
- cd /home/vagrant/generated-project
- docker-compose down
- cd ..
- rm -rf /home/vagrant/generated-project
- docker volume prune -f
-fi
-rm -rf /home/vagrant/geonode-project
-SCRIPT
-
-$script3 = <<-'SCRIPT'
-sudo reboot
-SCRIPT
-
-
-Vagrant.configure(2) do |config|
- boxes = {
- 'geonode-compose' => 'ubuntu/focal64'
- }
- machine_id = 0
-
-
- boxes.each do | key, value |
- config.vm.network "forwarded_port", guest: 80, host: 8000
- config.vm.provider "virtualbox" do |v|
- v.memory = 8132
- v.cpus = 4
- v.name = "geonode-vm"
- end
- config.vm.box = "#{value}"
- machine_id = machine_id + 1
- config.vm.define "#{key}" do |node|
- node.vm.hostname = "#{key}"
- config.vm.provision "shell", inline: $script1, privileged: false
- config.vm.provision "shell", inline: $script2, run: 'always', privileged: true
- config.vm.provision "file", source: $geonode_source_path, destination: "$HOME/geonode-project", run: 'always'
- config.vm.provision :shell, path: "generated-project-vagrant-compose.sh", run: 'always', privileged: false
- config.vm.provision "shell", inline: $script3, run: 'always', privileged: false
- end
- end
-end
\ No newline at end of file
diff --git a/Vagrantfile.stack b/Vagrantfile.stack
deleted file mode 100644
index f917d3e6..00000000
--- a/Vagrantfile.stack
+++ /dev/null
@@ -1,58 +0,0 @@
-$geonode_source_path='.'
-
-$script1 = <<-'SCRIPT'
-sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
-sudo chmod +x /usr/local/bin/docker-compose
-sudo apt-get -f install \
- apt-transport-https \
- ca-certificates \
- curl \
- gnupg \
- lsb-release
-curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
-echo \
- "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
- $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
-sudo apt-get update
-sudo apt-get -y install docker-ce docker-ce-cli containerd.io pwgen python3-pip python3-virtualenv virtualenvwrapper
-sudo adduser vagrant docker
-SCRIPT
-
-$script2 = <<-'SCRIPT'
-if [ -d "/home/vagrant/generated-project" ]; then
- cd /home/vagrant/generated-project
- docker service rm geonode-stack
- cd ..
- rm -rf /home/vagrant/generated-project
-fi
-rm -rf /home/vagrant/geonode-project
-SCRIPT
-
-$script4 = <<-'SCRIPT'
-sudo reboot
-SCRIPT
-
-Vagrant.configure(2) do |config|
- boxes = {
- 'geonode-swarm' => 'ubuntu/focal64'
- }
- machine_id = 0
- boxes.each do | key, value |
- config.vm.network "forwarded_port", guest: 80, host: 8888
- config.vm.provider "virtualbox" do |v|
- v.memory = 8132
- v.cpus = 4
- v.name = "geonode-vm"
- end
- config.vm.box = "#{value}"
- machine_id = machine_id + 1
- config.vm.define "#{key}" do |node|
- node.vm.hostname = "#{key}"
- config.vm.provision "shell", inline: $script1, privileged: false
- config.vm.provision "shell", inline: $script2, run: 'always', privileged: true
- config.vm.provision "file", source: $geonode_source_path, destination: "$HOME/geonode-project", run: 'always'
- config.vm.provision :shell, path: "generated-project-vagrant-swarm.sh", run: 'always', privileged: false
- config.vm.provision "shell", inline: $script3, run: 'always', privileged: false
- end
- end
-end
\ No newline at end of file
diff --git a/generated-project-vagrant-compose.sh b/generated-project-vagrant-compose.sh
deleted file mode 100644
index f91f5f05..00000000
--- a/generated-project-vagrant-compose.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-
-#!/usr/bin/env bash
-# this is the generated-project script to create an generated-project canary project.
-
-source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
-mkvirtualenv --python=/usr/bin/python3 generated-project
-pip install Django==3.2.16
-rm -rf generated-project
-django-admin startproject --template=/home/vagrant/geonode-project -e py,sh,md,rst,json,yml,ini,env,sample,properties -n monitoring-cron -n Dockerfile generated-project
-cd /home/vagrant/generated-project
-python create-envfile.py --geonodepwd geonode \
- --geoserverpwd geoserver \
- --pgpwd postgres \
- --dbpwd geonode \
- --geodbpwd geonode
-sed -i 's/GEOSERVER_WEB_UI_LOCATION=http:\/\/localhost\/geoserver\//GEOSERVER_WEB_UI_LOCATION=http:\/\/localhost:8888\/geoserver\//' .env
-sed -i 's/GEOSERVER_PUBLIC_LOCATION=http:\/\/localhost\/geoserver\//GEOSERVER_PUBLIC_LOCATION=http:\/\/localhost:8888\/geoserver\//' .env
-sed -i 's/SITEURL=.*/SITEURL=http:\/\/localhost:8888\//' .env
-sed -i 's/GEONODE_LB_PORT=80/GEONODE_LB_PORT=8888/' .env
-chown -R vagrant:vagrant /home/vagrant/generated-project
-sudo docker-compose build
-sudo docker-compose up -d
diff --git a/generated-project-vagrant-swarm.sh b/generated-project-vagrant-swarm.sh
deleted file mode 100644
index 773370c2..00000000
--- a/generated-project-vagrant-swarm.sh
+++ /dev/null
@@ -1,22 +0,0 @@
-
-#!/usr/bin/env bash
-# this is the generated-project script to create an generated-project canary project.
-sudo docker swarm init
-source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
-mkvirtualenv --python=/usr/bin/python3 generated-project
-pip install Django==3.2.16
-rm -rf generated-project
-django-admin startproject --template=/home/vagrant/geonode-project -e py,sh,md,rst,json,yml,ini,env,sample,properties -n monitoring-cron -n Dockerfile generated-project
-cd /home/vagrant/generated-project
-python create-envfile.py --geonodepwd geonode \
- --geoserverpwd geoserver \
- --pgpwd postgres \
- --dbpwd geonode \
- --geodbpwd geonode
-sed -i 's/GEOSERVER_WEB_UI_LOCATION=http:\/\/localhost\/geoserver\//GEOSERVER_WEB_UI_LOCATION=http:\/\/localhost:8888\/geoserver\//' .env
-sed -i 's/GEOSERVER_PUBLIC_LOCATION=http:\/\/localhost\/geoserver\//GEOSERVER_PUBLIC_LOCATION=http:\/\/localhost:8888\/geoserver\//' .env
-sed -i 's/SITEURL=.*/SITEURL=http:\/\/localhost:8888\//' .env
-sed -i 's/GEONODE_LB_PORT=80/GEONODE_LB_PORT=8888/' .env
-chown -R vagrant:vagrant /home/vagrant/generated-project
-sudo docker-compose -f ./geonode-stack.yml build
-sudo docker stack deploy -c ./geonode-stack.yml geonode-stack
diff --git a/geonode-stack.yml b/geonode-stack.yml
deleted file mode 100644
index 97b1b064..00000000
--- a/geonode-stack.yml
+++ /dev/null
@@ -1,165 +0,0 @@
-version: '3.9'
-
-# Common Django template for GeoNode and Celery services below
-x-common-django:
- &default-common-django
- image: django:latest
- env_file:
- - .env
- volumes:
- # - '.:/usr/src/{{project_name}}'
- - statics:/mnt/volumes/statics
- - geoserver-data-dir:/geoserver_data/data
- - backup-restore:/backup_restore
- - data:/data
- - tmp:/tmp
-
-# Common template for service restart policy
-x-common-swarm-deploy:
- &default-common-swarm-deploy
- replicas: 1
- restart_policy:
- condition: any
- delay: 0s
- max_attempts: 10
- window: 60s
-
-services:
-
- # Our custom django application. It includes Geonode.
- django:
- << : *default-common-django
- deploy: *default-common-swarm-deploy
- build:
- context: ./
- dockerfile: Dockerfile
- healthcheck:
- test: "curl --fail --silent --write-out 'HTTP CODE : %{http_code}\n' --output /dev/null http://127.0.0.1:8000/"
- interval: 60s
- timeout: 10s
- retries: 1
- start_period: 60s
- environment:
- IS_CELERY: 'False'
- entrypoint: ["/usr/src/{{project_name}}/entrypoint.sh"]
- command: "uwsgi --ini /usr/src/{{project_name}}/uwsgi.ini"
-
- # Celery worker that executes celery tasks created by Django.
- celery:
- << : *default-common-django
- deploy: *default-common-swarm-deploy
- depends_on:
- - django
- environment:
- - IS_CELERY=True
- entrypoint: ["/usr/src/{{project_name}}/entrypoint.sh"]
- command: "celery-cmd"
-
- # Nginx is serving django static and media files and proxies to django and geonode
- geonode:
- deploy: *default-common-swarm-deploy
- image: geonode/nginx:3.x
- build: ./docker/nginx/
- environment:
- - HTTPS_HOST=localhost
- - HTTP_HOST=localhost
- - HTTPS_PORT=443
- - HTTP_PORT=80
- - LETSENCRYPT_MODE=disabled
- - RESOLVER=127.0.0.11
- env_file:
- - .env
- ports:
- - "${HTTP_PORT}:80"
- - "${HTTPS_PORT}:443"
- volumes:
- - nginx-confd:/etc/nginx
- - nginx-certificates:/geonode-certificates
- - statics:/mnt/volumes/statics
-
- # Gets and installs letsencrypt certificates
- letsencrypt:
- deploy: *default-common-swarm-deploy
- image: geonode/letsencrypt:latest
- build: ./docker/letsencrypt/
- environment:
- - HTTPS_HOST=localhost
- - HTTP_HOST=localhost
- - ADMIN_EMAIL=admin@localhost
- - LETSENCRYPT_MODE=disabled
- env_file:
- - .env
- volumes:
- - nginx-certificates:/geonode-certificates
-
- # Geoserver backend
- geoserver:
- deploy: *default-common-swarm-deploy
- image: geonode/geoserver:2.20.6
- build: ./docker/geoserver/
- env_file:
- - .env
- healthcheck:
- test: curl --fail -s http://localhost:8080/geoserver/rest/workspaces/geonode.html || exit 1
- interval: 60s
- timeout: 10s
- retries: 1
- start_period: 60s
- volumes:
- - statics:/mnt/volumes/statics
- - geoserver-data-dir:/geoserver_data/data
- - backup-restore:/backup_restore
- - data:/data
- - tmp:/tmp
-
- data-dir-conf:
- image: geonode/geoserver_data:2.20.6
- command: /bin/true
- volumes:
- - geoserver-data-dir:/geoserver_data/data
-
- # PostGIS database.
- db:
- deploy: *default-common-swarm-deploy
- # use geonode official postgis 13 image
- image: geonode/postgis:13
- command: postgres -c "max_connections=${POSTGRESQL_MAX_CONNECTIONS}"
- volumes:
- - dbdata:/var/lib/postgresql/data
- - dbbackups:/pg_backups
- env_file:
- - .env
- # uncomment to enable remote connections to postgres
- #ports:
- # - "5432:5432"
-
- # Vanilla RabbitMQ service. This is needed by celery
- rabbitmq:
- deploy: *default-common-swarm-deploy
- image: rabbitmq:3.7-alpine
- volumes:
- - rabbitmq:/var/lib/rabbitmq
- env_file:
- - .env
-
-volumes:
- statics:
- name: statics
- nginx-confd:
- name: nginxconfd
- nginx-certificates:
- name: nginxcerts
- geoserver-data-dir:
- name: gsdatadir
- dbdata:
- name: dbdata
- dbbackups:
- name: dbbackups
- backup-restore:
- name: backup-restore
- data:
- name: data
- tmp:
- name: tmp
- rabbitmq:
- name: rabbitmq
diff --git a/playbook.yml b/playbook.yml
deleted file mode 100644
index 7e0e97b3..00000000
--- a/playbook.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-- name: Provision a GeoNode into Production
- hosts: production
- remote_user: ubuntu
- vars:
- app_name: {{ project_name }}
- github_user: geonode
- server_name: 0.0.0.0
- deploy_user: ubuntu
- code_repository: https://github.com/-----/{{ project_name }}.git" # e.g., "https://github.com/GeoNode/{{ project_name }}.git"
- branch_name: master
- virtualenv_dir: "/home/ubuntu/.venvs"
- site_url: "http://localhost:8000/" # The public url of the GeoNode instance
- geoserver_url: "https://artifacts.geonode.org/geoserver/2.20.6/geoserver.war" # geoserver_url should match what is found in dev_config.yml
- pg_max_connections: 100
- pg_shared_buffers: 128MB
- tomcat_xms: "1024M"
- tomcat_xmx: "2048M"
- nginx_client_max_body_size: "400M"
- letsencrypt: False
- gather_facts: False
- pre_tasks:
- - name: Install python for Ansible
- become: yes
- become_user: root
- raw: test -e /usr/bin/python || (apt -y update && apt install -y python3-minimal)
- - name: 'Reconfigue Locales'
- become: yes
- become_user: root
- shell: "{{ item }}"
- with_items:
- - "export LANGUAGE=en_US.UTF-8"
- - "export LANG=en_US.UTF-8"
- - "export LC_ALL=en_US.UTF-8"
- - "locale-gen --purge en_US.UTF-8"
- - "echo 'LANG=en_US.UTF-8\nLANGUAGE=en_US:en\n' > /etc/default/locale"
- - name: "Install cul, vim, and unzip"
- become: yes
- become_user: root
- apt: name="{{ item }}" state=latest
- with_items:
- - curl
- - vim
- - unzip
- - setup: # aka gather_facts
- roles:
- - { role: GeoNode.geonode }
diff --git a/src/jetty-runner.xml b/src/jetty-runner.xml
deleted file mode 100644
index 6f56792a..00000000
--- a/src/jetty-runner.xml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
- /geoserver
- geoserver
-
- org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern
- WONTMATCH
-
-
diff --git a/src/monitoring-cron b/src/monitoring-cron
deleted file mode 100644
index 0fa987da..00000000
--- a/src/monitoring-cron
+++ /dev/null
@@ -1,3 +0,0 @@
-# */1 * * * * /usr/src/{{project_name}}/manage.sh collect_metrics -n -t xml >> /var/log/cron.log 2>&1
-# 0 * * * * /usr/src/{{project_name}}/manage.sh dispatch_metrics >> /var/log/cron.log 2>&1
-# An empty line is required at the end of this file for a valid cron file.
diff --git a/src/package/support/geonode.binary b/src/package/support/geonode.binary
deleted file mode 100644
index e3bb2060..00000000
--- a/src/package/support/geonode.binary
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE:-geonode.local_settings}
-
-if [ -n "$WORKON_HOME" ]; then
- DJANGO_ADMIN_CMD=$WORKON_HOME/bin/django-admin >/dev/null 2>/dev/null
-elif hash django-admin 2>/dev/null; then
- DJANGO_ADMIN_CMD=django-admin
-fi
-
-if [ -n "$DJANGO_ADMIN_CMD" ]; then
- DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE $DJANGO_ADMIN_CMD $@
-else
- DJANGO_SETTINGS_MODULE=$DJANGO_SETTINGS_MODULE django-admin.py $@
-fi
diff --git a/src/package/support/geonode.updateip b/src/package/support/geonode.updateip
deleted file mode 100644
index 827a5c42..00000000
--- a/src/package/support/geonode.updateip
+++ /dev/null
@@ -1,213 +0,0 @@
-#!/bin/bash
-
-usage () {
- bname="$(basename $0)"
- ret="$1"
-
- cat <
- substitute SITEURL with , append it
- to ALLOWED_HOSTS in local_settings.py
- and geoserver printing config lists
- This is mandatory and must be the pubic extenral address you use to access GeoNode
- $bname <-l|--local>
- same as above but taking into account
- LOCAL vs PUBLIC ip addresses (or names)
- This is optional and if not specified the default is 'localhost'
- $bname <-s|--secure>
- HTTPS instead of HTTP protocol
- $bname <-h|--help>
- this help
-EOF
-
- exit $ret
-}
-
-if [[ $# -eq 0 ]] ; then
- usage 0
- exit 0
-fi
-
-POSITIONAL=()
-while [[ $# -gt 0 ]]
-do
-key="$1"
-
-IS_HTTPS=0
-case $key in
- -h|--help)
- usage 0
- ;;
- -p|--public)
- PUBLIC_IP="$2"
- shift # past argument
- shift # past value
- ;;
- -l|--local)
- LOCAL_IP="$2"
- shift # past argument
- shift # past value
- ;;
- -s|--secure)
- IS_HTTPS=1
- shift # past argument
- ;;
- *) # unknown option
- POSITIONAL+=("$1") # save it in an array for later
- shift # past argument
- ;;
-esac
-done
-set -- "${POSITIONAL[@]}" # restore positional parameters
-
-if [[ $UID != 0 ]]; then
- echo "Please run this script with sudo:"
- echo "sudo $0 $*"
- exit 1
-fi
-
-if [ -z "$PUBLIC_IP" ]; then
- echo "Public IP is mandatory!"
- usage 1
-fi
-
-if [ -z "$LOCAL_IP" ]; then
- # LOCAL_IP=$PUBLIC_IP
- LOCAL_IP="localhost"
-fi
-
-NET_PROTOCOL="http"
-if [[ $IS_HTTPS != 0 ]]; then
- NET_PROTOCOL="https"
-fi
-
-# Getting the full netloc
-NEW_EXT_IP="$NET_PROTOCOL://$PUBLIC_IP"
-NEW_INT_IP="$NET_PROTOCOL://$LOCAL_IP"
-
-# Removing slash at the end of variables
-NEW_EXT_IP=${NEW_EXT_IP%/}
-NEW_INT_IP=${NEW_INT_IP%/}
-
-echo "PUBLIC_IP" $NEW_EXT_IP
-echo "LOCAL_IP" $NEW_INT_IP
-
-GEONODE_ETC=${GEONODE_ETC:-/etc/geonode}
-GEOSERVER_DATA_DIR=${GEOSERVER_DATA_DIR:-/usr/share/geoserver/data}
-TOMCAT_SERVICE=${TOMCAT_SERVICE:-"invoke-rc.d tomcat8"}
-APACHE_SERVICE=${APACHE_SERVICE:-"invoke-rc.d apache2"}
-
-# Replace SITEURL in $GEONODE_ETC/local_settings.py
-echo "Replacing SITEURL value with '$NEW_EXT_IP' in $GEONODE_ETC/local_settings.py ... " | tr -d '\n'
-sed -i "s@\(SITEURL[ ]*=[ ]*\).*@\1\'$NEW_EXT_IP\/'@g" $GEONODE_ETC/local_settings.py
-echo "done."
-
-echo "Adding entry for '$PUBLIC_IP' in $GEOSERVER_DATA_DIR/printing/config.yaml ... " | tr -d '\n'
-printing_config=$GEOSERVER_DATA_DIR/printing/config.yaml
-
-if grep -q "$PUBLIC_IP" "$printing_config"
-then
- echo "'$PUBLIC_IP' already found to the printing whitelist."
-else
- sed -i "s#hosts:#hosts:\n - !ipMatch\n ip: $PUBLIC_IP#g" $printing_config
- echo "done."
-fi
-
-# if ALLOWED_HOSTS already exists ...
-# if grep -q "^[ ]*ALLOWED_HOSTS[ ]*=" "$GEONODE_ETC/local_settings.py"
-# then
-# if [ $IS_REPLACE -eq 1 ]
-# then
-# echo "Replacing ALLOWED_HOSTS in $GEONODE_ETC/local_settings.py ... " | tr -d '\n'
-# sed -i "s/^\([ ]*ALLOWED_HOSTS[ ]*=\).*/\1 [ 'localhost', '$NEWIP', ]/g" "$GEONODE_ETC/local_settings.py"
-# echo "done."
-# else
-# echo "Adding $NEWIP to ALLOWED_HOSTS in $GEONODE_ETC/local_settings.py ... " | tr -d '\n'
-# items="$(grep "^[ ]*ALLOWED_HOSTS[ ]*=" "$GEONODE_ETC/local_settings.py" | \
-# sed 's/^[ ]*ALLOWED_HOSTS[ ]*=[ ]*\[//g;s/\][ ]*$//g')"
-# already_found=0
-# oldifs="$IFS"
-# IFS=','
-# for item in $items
-# do
-# item_cls="$(echo "$item" | sed "s/^[ ]*['\"]//g;s/['\"][ ]*$//g")"
-# if [ "$item_cls" = "$NEWIP" ]
-# then
-# already_found=1
-# break
-# fi
-# done
-# IFS="$oldifs"
-# if [ $already_found -eq 0 ]
-# then
-# if echo "$items" | grep -q ',[ ]*$'
-# then
-# items="${items}'$NEWIP', "
-# else
-# items="${items}, '$NEWIP', "
-# fi
-# sed -i "s/^\([ ]*ALLOWED_HOSTS[ ]*=\).*/\1 [ $items ]/g" "$GEONODE_ETC/local_settings.py"
-# echo "done."
-# else
-# echo "'$NEWIP' already found in ALLOWED_HOSTS list."
-# fi
-# fi
-# else
-# echo "Adding ALLOWED_HOSTS with in $GEONODE_ETC/local_settings.py ... " | tr -d '\n'
-# echo "ALLOWED_HOSTS=['localhost', '$NEWIP', ]" >> $GEONODE_ETC/local_settings.py
-# echo "done."
-# fi
-
-
-# silence the warnings from executing geonode command or they will pollute the commands output
-if grep -q "^[ ]*SILENCED_SYSTEM_CHECKS[ ]*=" "$GEONODE_ETC/local_settings.py"
-then
- true
-else
- echo "SILENCED_SYSTEM_CHECKS = ['1_8.W001', 'fields.W340']" >> $GEONODE_ETC/local_settings.py
-fi
-
-geonode fixsitename
-
-echo "Setting up oauth"
-# Set oauth keys
-oauth_keys=$(geonode fixoauthuri 2>&1)
-client_id=`echo $oauth_keys | cut -d \, -f 1`
-client_secret=`echo $oauth_keys | cut -d \, -f 2`
-
-# Updating OAuth2 Service Config
-oauth_config="$GEOSERVER_DATA_DIR/security/filter/geonode-oauth2/config.xml"
-sed -i "s|.*|$client_id|g" $oauth_config
-sed -i "s|.*|$client_secret|g" $oauth_config
-sed -i "s|.*|$NEW_INT_IP/o/token/|g" $oauth_config
-sed -i "s|.*|$NEW_EXT_IP/o/authorize/|g" $oauth_config
-sed -i "s|.*|$NEW_EXT_IP/geoserver/|g" $oauth_config
-sed -i "s|.*|$NEW_INT_IP/api/o/v4/tokeninfo/|g" $oauth_config
-sed -i "s|.*|$NEW_EXT_IP/account/logout/|g" $oauth_config
-
-# Updating REST Role Service Config
-sed -i "s|.*|$NEW_INT_IP|g" "$GEOSERVER_DATA_DIR/security/role/geonode REST role service/config.xml"
-
-# Updating GeoServer Global Config
-global_config="$GEOSERVER_DATA_DIR/global.xml"
-sed -i "s|.*|$NEW_EXT_IP/geoserver|g" $global_config
-
-# Restart tomcat server
-$TOMCAT_SERVICE restart
-
-echo "Waiting Tomcat Service to Restart..."
-sleep 30s
-
-# Restart apache server
-$APACHE_SERVICE restart
-echo "Waiting Apache HTTPD Service to Restart..."
-sleep 5s
-
-# Run updatelayers
-geonode updatelayers
-geonode set_all_datasets_alternate
-geonode set_all_datasets_metadata
-
-# Run updatemaplayerip
-geonode updatemaplayerip
diff --git a/src/scripts/misc/apache2/geonode.conf.sample b/src/scripts/misc/apache2/geonode.conf.sample
deleted file mode 100644
index 4f45a02e..00000000
--- a/src/scripts/misc/apache2/geonode.conf.sample
+++ /dev/null
@@ -1,108 +0,0 @@
-WSGIDaemonProcess geonode python-path=/home/geo/geonode:/home/geo/Envs/geonode/lib/python2.7/site-packages user=www-data threads=15 processes=2
-
-
- ServerName http://localhost
- ServerAdmin webmaster@localhost
- DocumentRoot /home/geo/geonode/geonode
-
- LimitRequestFieldSize 32760
- LimitRequestLine 32760
-
- ErrorLog /var/log/apache2/error.log
- LogLevel info
- CustomLog /var/log/apache2/access.log combined
-
- WSGIProcessGroup geonode
- WSGIPassAuthorization On
- WSGIScriptAlias / /home/geo/geonode/geonode/wsgi.py
-
- Alias /static/ /home/geo/geonode/geonode/static_root/
- Alias /uploaded/ /home/geo/geonode/geonode/uploaded/
-
-
-
- Order deny,allow
- Allow from all
- Require all granted
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Options Indexes FollowSymLinks
- Allow from all
- Require all granted
- IndexOptions FancyIndexing
-
-
-
- Order allow,deny
- Allow from all
-
-
- ProxyPreserveHost On
- ProxyPass /geoserver http://localhost:8080/geoserver
- ProxyPassReverse /geoserver http://localhost:8080/geoserver
-
-
diff --git a/src/scripts/misc/cleanup_pyc.sh b/src/scripts/misc/cleanup_pyc.sh
deleted file mode 100644
index 4eeae2b9..00000000
--- a/src/scripts/misc/cleanup_pyc.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/bash
-
-# This is the script directory
-# pushd $(dirname $0)
-
-# This is the current directory
-pushd $PWD
-
-find . -name "*.pyc" -exec rm -f {} \;
diff --git a/src/scripts/misc/jetty-runner.xml b/src/scripts/misc/jetty-runner.xml
deleted file mode 100644
index c7b747cb..00000000
--- a/src/scripts/misc/jetty-runner.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- /geoserver
-
- /WEB-INF/web.xml
- false
-
- org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern
- WONTMATCH
-
-