From d06aa00bb41c25880dd99fef34b5c97704af4a33 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Wed, 14 Sep 2022 04:10:22 +0000 Subject: databases/postgresql*-server: fix minor style bugs in maintenance script Convert to ASCII and trim EOL whitespace. The scripts are now identical across all PostgreSQL server versions we have in the ports. Verified by: cksum(1) --- databases/postgresql13-server/files/502.pgsql.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'databases/postgresql13-server/files') diff --git a/databases/postgresql13-server/files/502.pgsql.in b/databases/postgresql13-server/files/502.pgsql.in index c2d5b885d2f1..604ad3dadab8 100644 --- a/databases/postgresql13-server/files/502.pgsql.in +++ b/databases/postgresql13-server/files/502.pgsql.in @@ -1,7 +1,7 @@ #!/bin/sh # # Maintenance shell script to vacuum and backup database -# Put this in /usr/local/etc/periodic/daily, and it will be run +# Put this in /usr/local/etc/periodic/daily, and it will be run # every night # # Written by Palle Girgensohn @@ -34,7 +34,7 @@ fi : ${daily_pgsql_backupdir:="~${daily_pgsql_user}/backups"} : ${daily_pgsql_savedays:="7"} -# allow '~´ in dir name +# allow '~' in directory name eval backupdir=${daily_pgsql_backupdir} rc=0 @@ -43,7 +43,7 @@ pgsql_backup() { # daily_pgsql_backupdir must be writeable by user %%PG_USER%% # ~%%PG_USER%% is just that under normal circumstances, # but this might not be where you want the backups... - if [ ! -d ${backupdir} ] ; then + if [ ! -d ${backupdir} ] ; then echo Creating ${backupdir} mkdir -m 700 ${backupdir}; chown ${daily_pgsql_user} ${backupdir} fi -- cgit v1.2.3