<commit_before>#!/bin/bash
################################################################################
# Script for Installing: ODOO 8 or 9 Community/Enterprise on Ubuntu 14.04
# Author: <NAME>, iterativo.do 2016
#
# Based on André Schenkels installation script located in github:
# https://github.com/aschenkels-ictstudio/odoo-install-scripts
#-------------------------------------------------------------------------------
# This script will install ODOO Server on a
# clean Ubuntu 14.04 Server
#-------------------------------------------------------------------------------
# PREFERRED USE:
# . odoo_install or source odoo_install
#
# CAN WORK WITH (NOT RECOMMENDED AS VIRTUALENV MITH NOT WORK CORRECTLY):
# ./odoo-install
#
#-------------------------------------------------------------------------------
# IMPORTANT! This script contains extra libraries that are specifically
# needed for Odoo 9.0
#-------------------------------------------------------------------------------
#
################################################################################
#--------------------------------------------------
# Set Locale en_US.UTF-8 for PostgreSQL
#--------------------------------------------------
echo "*********************************"
echo "*                               *"
echo "*       Changing Locales        *"
echo "*                               *"
echo "*********************************"
# Configure timezone and locale
echo -e "\n---- Setting Locales  ----"
sudo locale-gen --purge "en_US.UTF-8" && \
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale && \
sudo dpkg-reconfigure --frontend=noninteractive locales && \
sudo update-locale LANG=en_US.UTF-8
#---------------------------------------------------
# Timezone for Dominican Republic, change as needed
#---------------------------------------------------
echo -e "\n---- Setting Time Zone  ----"
echo "America/Santo_Domingo" > /etc/timezone && \
sudo dpkg-reconfigure -f noninteractive tzdata && \

#--------------------------------------------------
# Update the Server
#--------------------------------------------------
echo "*********************************"
echo "*                               *"
echo "*     Updating and upgrading    *"
echo "*                               *"
echo "*********************************"
echo -e "\n---- Adding PostgreSQL 9.5  ----"
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get dist-upgrade -y

#--------------------------------------------------
# Fixed parameters for Odoo
#--------------------------------------------------
OE_USER="[odoo_admin_user]"
OE_HOME="/$OE_USER"
OE_HOME_EXT="/$OE_USER/${OE_USER}-server"
OE_VIRTENV="[virtualenv_name]"

#Set it to true if you want to install it, false if you don't need it or have it already installed.
INSTALL_WKHTMLTOPDF="True"

#Set it to true if you have your Odoo install behind a Proxy.
HAVE_PROXY="False"

#Set the default Odoo port
OE_PORT="8069"

#Choose the Odoo version which you want to install. For example: 9.0, 8.0.
OE_VERSION="9.0"

# Set this to True if you want to install Odoo 9 Enterprise!
IS_ENTERPRISE="False"

#set the superadmin password
OE_SUPERADMIN="[@_v3ry_str0ng_p@ssw0rd!]"
OE_CONFIG="${OE_USER}-server"

###  WKHTMLTOPDF download links
## === Ubuntu Trusty x64 & x32 === (for other distributions please replace these two links,
## in order to have correct version of wkhtmltox installed, for a danger note refer to
## https://www.odoo.com/documentation/8.0/setup/install.html#deb ):
WKHTMLTOX_X64=http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
WKHTMLTOX_X32=http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-i386.deb


echo "*********************************"<commit_msg>Change default variables to working ones<commit_after>#!/bin/bash
################################################################################
# Script for Installing: ODOO 8 or 9 Community/Enterprise on Ubuntu 14.04
# Author: <NAME>, iterativo.do 2016
#
# Based on André Schenkels installation script located in github:
# https://github.com/aschenkels-ictstudio/odoo-install-scripts
#-------------------------------------------------------------------------------
# This script will install ODOO Server on a
# clean Ubuntu 14.04 Server
#-------------------------------------------------------------------------------
# PREFERRED USE:
# . odoo_install or source odoo_install
#
# CAN WORK WITH (NOT RECOMMENDED AS VIRTUALENV MITH NOT WORK CORRECTLY):
# ./odoo-install
#
#-------------------------------------------------------------------------------
# IMPORTANT! This script contains extra libraries that are specifically
# needed for Odoo 9.0
#-------------------------------------------------------------------------------
#
################################################################################
#--------------------------------------------------
# Set Locale en_US.UTF-8 for PostgreSQL
#--------------------------------------------------
echo "*********************************"
echo "*                               *"
echo "*       Changing Locales        *"
echo "*                               *"
echo "*********************************"
# Configure timezone and locale
echo -e "\n---- Setting Locales  ----"
sudo locale-gen --purge "en_US.UTF-8" && \
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' > /etc/default/locale && \
sudo dpkg-reconfigure --frontend=noninteractive locales && \
sudo update-locale LANG=en_US.UTF-8
#---------------------------------------------------
# Timezone for Dominican Republic, change as needed
#---------------------------------------------------
echo -e "\n---- Setting Time Zone  ----"
echo "America/Santo_Domingo" > /etc/timezone && \
sudo dpkg-reconfigure -f noninteractive tzdata && \

#--------------------------------------------------
# Update the Server
#--------------------------------------------------
echo "*********************************"
echo "*                               *"
echo "*     Updating and upgrading    *"
echo "*                               *"
echo "*********************************"
echo -e "\n---- Adding PostgreSQL 9.5  ----"
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list'
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get dist-upgrade -y

#--------------------------------------------------
# Fixed parameters for Odoo
#--------------------------------------------------
OE_USER="odoo"
OE_HOME="/$OE_USER"
OE_HOME_EXT="/$OE_USER/${OE_USER}-server"
OE_VIRTENV="venv"

#Set it to true if you want to install it, false if you don't need it or have it already installed.
INSTALL_WKHTMLTOPDF="True"

#Set it to true if you have your Odoo install behind a Proxy.
HAVE_PROXY="False"

#Set the default Odoo port
OE_PORT="8069"

#Choose the Odoo version which you want to install. For example: 9.0, 8.0.
OE_VERSION="9.0"

# Set this to True if you want to install Odoo 9 Enterprise!
IS_ENTERPRISE="False"

#set the superadmin password
OE_SUPERADMIN="admin"
OE_CONFIG="${OE_USER}-server"

###  WKHTMLTOPDF download links
## === Ubuntu Trusty x64 & x32 === (for other distributions please replace these two links,
## in order to have correct version of wkhtmltox installed, for a danger note refer to
## https://www.odoo.com/documentation/8.0/setup/install.html#deb ):
WKHTMLTOX_X64=http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb
WKHTMLTOX_X32=http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-trusty-i386.deb


echo "*********************************"
{'fraction_non_alphanumeric': 0.3599798259992435, 'fraction_numerical': 0.018534863195057368, 'mean_word_length': 1.8087818696883853, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2920006', 'n_tokens_mistral': 2317, 'n_tokens_neox': 2091, 'n_words': 573}