Fixing missing dependencies and permissions to .pgpass file
This commit is contained in:
		@@ -8,7 +8,7 @@ ENV LOG_LEVEL=8
 | 
			
		||||
 | 
			
		||||
# Packages installation
 | 
			
		||||
RUN apt-get update && apt-get upgrade -y && \
 | 
			
		||||
    apt-get install -y autopostgresqlbackup cron bzip2 gzip && \
 | 
			
		||||
    apt-get install -y autopostgresqlbackup cron bzip2 gzip postgresql-client && \
 | 
			
		||||
    apt-get purge -y --auto-remove && \
 | 
			
		||||
    rm -rf /var/lib/apt/lists/*
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -58,7 +58,7 @@ MAILADDR="root"
 | 
			
		||||
#=============================================================
 | 
			
		||||
 | 
			
		||||
# List of DBBNAMES for Monthly Backups.
 | 
			
		||||
MDBNAMES="template1 $DBNAMES"
 | 
			
		||||
MDBNAMES="${DBNAMES}"
 | 
			
		||||
 | 
			
		||||
# List of DBNAMES to EXLUCDE if DBNAMES are set to all (must be in " quotes)
 | 
			
		||||
DBEXCLUDE="${DBEXCLUDE}"
 | 
			
		||||
 
 | 
			
		||||
@@ -47,6 +47,8 @@ cat <<-EOF > ${HOME}/.pgpass
 | 
			
		||||
 | 
			
		||||
${DBHOST:-localhost}:*:*:${USERNAME:-postgres}:${PASSPHRASE}
 | 
			
		||||
EOF
 | 
			
		||||
# Permissions for this file shoudl be set to 0600
 | 
			
		||||
chmod +x 0600 ${HOME}/.pgpass
 | 
			
		||||
 | 
			
		||||
# Execute cron with parameters (autopostgresql script is under /etc/cron.daily)
 | 
			
		||||
echo "Execute cron service..."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user