[UPD] Choose install Postgresql

pull/234/head
Altanmur 6 years ago
parent 9d93fcab08
commit fe3ad15f6b

@ -29,6 +29,8 @@ OE_VERSION="13.0"
IS_ENTERPRISE="False" IS_ENTERPRISE="False"
# Set this to True if you want to install Nginx! # Set this to True if you want to install Nginx!
INSTALL_NGINX="False" INSTALL_NGINX="False"
# Set this to True if you want to install Postgresql!
INSTALL_POSTGRESQL="True"
# Set the superadmin password - if GENERATE_RANDOM_PASSWORD is set to "True" we will automatically generate a random password, otherwise we use this one # Set the superadmin password - if GENERATE_RANDOM_PASSWORD is set to "True" we will automatically generate a random password, otherwise we use this one
OE_SUPERADMIN="admin" OE_SUPERADMIN="admin"
# Set to "True" to generate a random password, "False" to use the variable in OE_SUPERADMIN # Set to "True" to generate a random password, "False" to use the variable in OE_SUPERADMIN
@ -65,12 +67,15 @@ sudo apt-get upgrade -y
#-------------------------------------------------- #--------------------------------------------------
# Install PostgreSQL Server # Install PostgreSQL Server
#-------------------------------------------------- #--------------------------------------------------
echo -e "\n---- Install PostgreSQL Server ----" if [ $INSTALL_POSTGRESQL = "True" ]; then
sudo apt-get install postgresql postgresql-server-dev-all -y echo -e "\n---- Install PostgreSQL Server ----"
sudo apt-get install postgresql postgresql-server-dev-all -y
echo -e "\n---- Creating the ODOO PostgreSQL User ----"
sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true
echo -e "\n---- Creating the ODOO PostgreSQL User ----"
sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true
else
echo "Postgresql isn't installed due to the choice of the user!"
fi
#-------------------------------------------------- #--------------------------------------------------
# Install Dependencies # Install Dependencies
#-------------------------------------------------- #--------------------------------------------------

@ -30,6 +30,8 @@ OE_VERSION="13.0"
IS_ENTERPRISE="False" IS_ENTERPRISE="False"
# Set this to True if you want to install Nginx! # Set this to True if you want to install Nginx!
INSTALL_NGINX="False" INSTALL_NGINX="False"
# Set this to True if you want to install Postgresql!
INSTALL_POSTGRESQL="True"
# Set the superadmin password - if GENERATE_RANDOM_PASSWORD is set to "True" we will automatically generate a random password, otherwise we use this one # Set the superadmin password - if GENERATE_RANDOM_PASSWORD is set to "True" we will automatically generate a random password, otherwise we use this one
OE_SUPERADMIN="admin" OE_SUPERADMIN="admin"
# Set to "True" to generate a random password, "False" to use the variable in OE_SUPERADMIN # Set to "True" to generate a random password, "False" to use the variable in OE_SUPERADMIN
@ -59,11 +61,15 @@ sudo apt-get upgrade -y
#-------------------------------------------------- #--------------------------------------------------
# Install PostgreSQL Server # Install PostgreSQL Server
#-------------------------------------------------- #--------------------------------------------------
echo -e "\n---- Install PostgreSQL Server ----" if [ $INSTALL_POSTGRESQL = "True" ]; then
sudo apt-get install postgresql -y echo -e "\n---- Install PostgreSQL Server ----"
sudo apt-get install postgresql -y
echo -e "\n---- Creating the ODOO PostgreSQL User ----" echo -e "\n---- Creating the ODOO PostgreSQL User ----"
sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true sudo su - postgres -c "createuser -s $OE_USER" 2> /dev/null || true
else
echo "Postgresql isn't installed due to the choice of the user!"
fi
#-------------------------------------------------- #--------------------------------------------------
# Install Dependencies # Install Dependencies

Loading…
Cancel
Save