Add -e to .sh scripts

This commit is contained in:
Sergey Dolin
2020-10-07 13:49:40 +05:00
parent 87d16c5f7d
commit 1d4f281899
83 changed files with 93 additions and 163 deletions

View File

@@ -1,10 +1,9 @@
#!/bin/bash
#!/bin/bash -e
################################################################################
## File: postgresql.sh
## Desc: Installs Postgresql
################################################################################
#Preparing repo for PostgreSQL 12.
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list
@@ -25,4 +24,4 @@ pg_isready
# Disable postgresql.service
systemctl is-active --quiet postgresql.service && systemctl stop postgresql.service
systemctl disable postgresql.service
systemctl disable postgresql.service