Last active
May 25, 2024 23:23
-
-
Save cleydyr/c010f44e169088b85d9ef73c928591b5 to your computer and use it in GitHub Desktop.
Revisions
-
Cleydyr Bezerra de Albuquerque revised this gist
Feb 16, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -30,7 +30,7 @@ sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr # Cria o esquema básico do Biblivre echo "Criando esquemas e populando dados para primeira instalação Biblivre 5" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.x/sql/biblivre4.sql | pv -s 2942822 | psql -o /dev/null -U postgres -d biblivre4" # Aumenta o tamanho máximo do heap do Tomcat 7 de 128m (padrão) para 1G echo "Aumentando o tamanho máximo do heap do Tomcat 7 para 1 GiB" -
Cleydyr Bezerra de Albuquerque revised this gist
Oct 30, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -6,7 +6,7 @@ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" # Adiciona repositório que contém o Tomcat 7 (obsoleto) echo "Adicionando repositório que contém o Tomcat 7 (obsoleto)" sudo sh -c 'echo "deb http://br.archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/tomcat7.list' sudo sh -c 'echo "deb http://br.archive.ubuntu.com/ubuntu/ xenial universe" >> /etc/apt/sources.list.d/tomcat7.list' # Instala chave de segurança do PostgreSQL echo "Instalando chave de segurança do PostgreSQL" -
Cleydyr Bezerra de Albuquerque revised this gist
Oct 30, 2019 . 1 changed file with 6 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,5 +49,11 @@ sudo mv Biblivre4.war /var/lib/tomcat7/webapps/Biblivre4.war echo "Reiniciando do serviço do Tomcat 7" sudo systemctl restart tomcat7 # Cria e dá permissões ao usuário Tomcat para a pasta Biblivre na pasta home do usuário Tomcat. # Isso é necessário para se armazenar arquivos de backup, por exemplo. tomcat7_home_folder=`getent passwd "tomcat7" | cut -d: -f6`/Biblivre sudo mkdir $tomcat7_home_folder sudo chown tomcat7 $tomcat7_home_folder echo "Tudo pronto! Abrindo http://localhost:8080/Biblivre4" sensible-browser http://localhost:8080/Biblivre4 -
Cleydyr Bezerra de Albuquerque revised this gist
Oct 27, 2019 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,6 +3,11 @@ echo "Adicionando repositório que contém o PostgresSQL 9.1 (obsoleto)" sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list' # Adiciona repositório que contém o Tomcat 7 (obsoleto) echo "Adicionando repositório que contém o Tomcat 7 (obsoleto)" sudo sh -c 'echo "deb http://br.archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/tomcat7.list' sudo sh -c 'echo "deb http://us.archive.ubuntu.com/ubuntu/ xenial universe" >> /etc/apt/sources.list.d/tomcat7.list' # Instala chave de segurança do PostgreSQL echo "Instalando chave de segurança do PostgreSQL" wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - -
Cleydyr Bezerra de Albuquerque revised this gist
Oct 27, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ sudo wget -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.po # Baixa a release mais recente do repositório e implanta no Tomcat 7 echo "Baixando e implantando a release mais recente do Biblivre 5" echo 'https://github.com/cleydyr/biblivre/releases/download'`wget -SO- https://github.com/cleydyr/biblivre/releases/latest 2>&1 >/dev/null | grep Location | head -n1 | sed 's/^ *//;s/ *$//' | cut -f2 -d " " | egrep -o "/v.*$"`"/Biblivre4.war" | tr -d "\r" | xargs wget sudo mv Biblivre4.war /var/lib/tomcat7/webapps/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap -
Cleydyr Bezerra de Albuquerque revised this gist
Oct 24, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ sudo wget -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.po # Baixa a release mais recente do repositório e implanta no Tomcat 7 echo "Baixando e implantando a release mais recente do Biblivre 5" echo 'https://github.com/cleydyr/biblivre/releases/download'`wget -SO- https://github.com/cleydyr/biblivre/releases/latest 2>&1 >/dev/null | grep Location | sed 's/^ *//;s/ *$//' | cut -f2 -d " " | egrep -o "/v.*$"`"/Biblivre4.war" | tr -d "\r" | xargs wget sudo mv Biblivre4.war /var/lib/tomcat7/webapps/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap -
Cleydyr Bezerra de Albuquerque revised this gist
Apr 30, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -37,7 +37,7 @@ sudo wget -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.po # Baixa a release mais recente do repositório e implanta no Tomcat 7 echo "Baixando e implantando a release mais recente do Biblivre 5" echo 'https://github.com/cleydyr/biblivre/releases/download'`wget -SO- https://github.com/cleydyr/biblivre/releases/latest 2>&1 >/dev/null | grep Location | cut -f2 -d " " | egrep -o "/v.*$"`"/Biblivre4.war" | tr -d "\r" | xargs wget sudo mv Biblivre4.war /var/lib/tomcat7/webapps/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap -
Cleydyr Bezerra de Albuquerque revised this gist
Apr 2, 2019 . 1 changed file with 4 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,9 +35,10 @@ sudo sed -i 's/-Xmx128m/-Xmx1G/' /etc/default/tomcat7 echo "Baixando o driver JDBC 4 do PostgreSQL 9.1" sudo wget -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.postgresql.org/download/postgresql-9.1-903.jdbc4.jar # Baixa a release mais recente do repositório e implanta no Tomcat 7 echo "Baixando e implantando a release mais recente do Biblivre 5" echo 'https://github.com/cleydyr/biblivre/releases/download'`curl -i https://github.com/cleydyr/biblivre/releases/latest | grep Location | cut -f2 -d " " | egrep -o "/v.*$"`"/Biblivre4.war" | tr -d "\r" | xargs wget sudo mv Biblivre4.war /var/lib/tomcat7/webapps/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap echo "Reiniciando do serviço do Tomcat 7" -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,15 +17,15 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 op # Cria a senha padrão para o usuário postgres echo "Criando senha padrão para o PostgreSQL" sudo su postgres -c "psql -o /dev/null -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; # Cria usuário biblivre e o banco de dados básico biblivre4 echo "Criando estrutura básica do banco de dados" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | pv -s 406 | psql -o /dev/null -U postgres" # Cria o esquema básico do Biblivre echo "Criando esquemas e populando dados para primeira instalação Biblivre 5" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | pv -s 2942822 | psql -o /dev/null -U postgres -d biblivre4" # Aumenta o tamanho máximo do heap do Tomcat 7 de 128m (padrão) para 1G echo "Aumentando o tamanho máximo do heap do Tomcat 7 para 1 GiB" -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,19 +13,19 @@ sudo apt-get update # Instala pacotes PostgreSQL 9.1 e Tomcat 7 e OpenJDK 8 (opcional) echo "Instalando PostgreSQL 9.1, Tomcat 7 e Open JDK 8" sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 openjdk-8-jdk-headless pv # Cria a senha padrão para o usuário postgres echo "Criando senha padrão para o PostgreSQL" sudo su postgres -c "psql -q -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; # Cria usuário biblivre e o banco de dados básico biblivre4 echo "Criando estrutura básica do banco de dados" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | pv -s 406 | psql -q -U postgres" # Cria o esquema básico do Biblivre echo "Criando esquemas e populando dados para primeira instalação Biblivre 5" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | pv -s 2942822 | psql -q -U postgres -d biblivre4" # Aumenta o tamanho máximo do heap do Tomcat 7 de 128m (padrão) para 1G echo "Aumentando o tamanho máximo do heap do Tomcat 7 para 1 GiB" @@ -37,10 +37,10 @@ sudo wget -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.po # Baixa a release 5.1.0 do repositório e implanta no Tomcat 7 echo "Baixando e implantando a release 5.1.0 do Biblivre 5" sudo wget -O /var/lib/tomcat7/webapps/Biblivre4.war https://github.com/cleydyr/Biblivre-5/releases/download/5.1.0/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap echo "Reiniciando do serviço do Tomcat 7" sudo systemctl restart tomcat7 echo "Tudo pronto! Abrindo http://localhost:8080/Biblivre4" -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 17 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,33 +1,47 @@ #!/usr/bin/env bash # Adiciona repositório que contém o PostgresSQL 9.1 (obsoleto) echo "Adicionando repositório que contém o PostgresSQL 9.1 (obsoleto)" sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list' # Instala chave de segurança do PostgreSQL echo "Instalando chave de segurança do PostgreSQL" wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - # Atualiza repositórios echo "Atualizando repositórios" sudo apt-get update # Instala pacotes PostgreSQL 9.1 e Tomcat 7 e OpenJDK 8 (opcional) echo "Instalando PostgreSQL 9.1, Tomcat 7 e Open JDK 8" sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 openjdk-8-jdk-headless # Cria a senha padrão para o usuário postgres echo "Criando senha padrão para o PostgreSQL" sudo su postgres -c "psql -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; # Cria usuário biblivre e o banco de dados básico biblivre4 echo "Criando estrutura básica do banco de dados" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | psql -U postgres" # Cria o esquema básico do Biblivre echo "Criando esquemas e populando dados para primeira instalação Biblivre 5" sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | psql -U postgres -d biblivre4" # Aumenta o tamanho máximo do heap do Tomcat 7 de 128m (padrão) para 1G echo "Aumentando o tamanho máximo do heap do Tomcat 7 para 1 GiB" sudo sed -i 's/-Xmx128m/-Xmx1G/' /etc/default/tomcat7 # Baixa o driver JDBC do PostgreSQL 9.1 echo "Baixando o driver JDBC 4 do PostgreSQL 9.1" sudo wget -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.postgresql.org/download/postgresql-9.1-903.jdbc4.jar # Baixa a release 5.1.0 do repositório e implanta no Tomcat 7 echo "Baixando e implantando a release 5.1.0 do Biblivre 5" sudo wget --quiet -O /var/lib/tomcat7/webapps/Biblivre4.war https://github.com/cleydyr/Biblivre-5/releases/download/5.1.0/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap echo "Reiciando do serviço do Tomcat 7" sudo systemctl restart tomcat7 echo "Tudo pronto! Abrindo http://localhost:8080/Biblivre4" sensible-browser http://localhost:8080/Biblivre4 -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,6 @@ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt- # Atualiza pacotes sudo apt-get update # Instala pacotes PostgreSQL 9.1 e Tomcat 7 e OpenJDK 8 (opcional) sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 openjdk-8-jdk-headless @@ -16,10 +15,10 @@ sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 op sudo su postgres -c "psql -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; # Cria usuário biblivre e o banco de dados básico biblivre4 sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | psql -U postgres" # Cria o esquema básico do Biblivre sudo su postgres -c "wget --quiet -O - https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | psql -U postgres -d biblivre4" # Aumenta o tamanho máximo do heap do Tomcat 7 de 128m (padrão) para 1G sudo sed -i 's/-Xmx128m/-Xmx1G/' /etc/default/tomcat7 -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 21 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,34 @@ #!/usr/bin/env bash # Adiciona repositório que contém o PostgresSQL 9.1 (obsoleto) sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list' # Instala chave de segurança do PostgreSQL wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - # Atualiza pacotes sudo apt-get update sudo apt-get upgrade -y # Instala pacotes PostgreSQL 9.1 e Tomcat 7 e OpenJDK 8 (opcional) sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 openjdk-8-jdk-headless # Cria a senha padrão para o usuário postgres sudo su postgres -c "psql -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; # Cria usuário biblivre e o banco de dados básico biblivre4 sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | psql -U postgres" # Cria o esquema básico do Biblivre sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | psql -U postgres -d biblivre4" # Aumenta o tamanho máximo do heap do Tomcat 7 de 128m (padrão) para 1G sudo sed -i 's/-Xmx128m/-Xmx1G/' /etc/default/tomcat7 # Baixa o driver JDBC do PostgreSQL 9.1 sudo wget --quiet -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.postgresql.org/download/postgresql-9.1-903.jdbc4.jar # Baixa a release 5.1.0 do repositório e implanta no Tomcat 7 sudo wget --quiet -O /var/lib/tomcat7/webapps/Biblivre4.war https://github.com/cleydyr/Biblivre-5/releases/download/5.1.0/Biblivre4.war # Reinicia o serviço do Tomcat para carregar o driver e efetuar as mudanças do tamanho do heap sudo systemctl restart tomcat7 -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get upgrade -y sudo DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-9.1 tomcat7 openjdk-8-jdk-headless sudo su postgres -c "psql -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | psql -U postgres" sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | psql -U postgres -d biblivre4" -
Cleydyr Bezerra de Albuquerque revised this gist
Sep 1, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,6 @@ sudo su postgres -c "psql -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | psql -U postgres" sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | psql -U postgres -d biblivre4" sudo sed -i 's/-Xmx128m/-Xmx1G/' /etc/default/tomcat7 sudo wget --quiet -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.postgresql.org/download/postgresql-9.1-903.jdbc4.jar sudo wget --quiet -O /var/lib/tomcat7/webapps/Biblivre4.war https://github.com/cleydyr/Biblivre-5/releases/download/5.1.0/Biblivre4.war sudo systemctl restart tomcat7 -
Cleydyr Bezerra de Albuquerque created this gist
Sep 1, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/usr/bin/env bash sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" > /etc/apt/sources.list.d/pgdg.list' wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt-get update sudo apt-get upgrade -y sudo apt-get install -y postgresql-9.1 tomcat7 openjdk-8-jdk-headless sudo su postgres -c "psql -U postgres -c "'"'"ALTER USER postgres WITH PASSWORD 'abracadabra'"'"'""; sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/createdatabase.sql | psql -U postgres" sudo su postgres -c "curl https://raw.githubusercontent.com/cleydyr/Biblivre-5/5.1.0/sql/biblivre4.sql | psql -U postgres -d biblivre4" sudo sed -i 's/-Xmx128m/-Xmx1G/' /etc/default/tomcat7 wget --quiet -O /usr/share/tomcat7/lib/postgresql-9.1-903.jdbc4.jar https://jdbc.postgresql.org/download/postgresql-9.1-903.jdbc4.jar wget --quiet -O /var/lib/tomcat7/webapps/Biblivre4.war https://github.com/cleydyr/Biblivre-5/releases/download/5.1.0/Biblivre4.war sudo systemctl restart tomcat7