git: d06aa00bb41c - main - databases/postgresql*-server: fix minor style bugs in maintenance script
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Sep 2022 04:11:29 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=d06aa00bb41c25880dd99fef34b5c97704af4a33 commit d06aa00bb41c25880dd99fef34b5c97704af4a33 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2022-09-14 04:10:22 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2022-09-14 04:10:22 +0000 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/postgresql10-server/files/502.pgsql.in | 6 +++--- databases/postgresql11-server/files/502.pgsql.in | 6 +++--- databases/postgresql12-server/files/502.pgsql.in | 6 +++--- databases/postgresql13-server/files/502.pgsql.in | 6 +++--- databases/postgresql14-server/files/502.pgsql.in | 2 +- databases/postgresql15-server/files/502.pgsql.in | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/databases/postgresql10-server/files/502.pgsql.in b/databases/postgresql10-server/files/502.pgsql.in index c2d5b885d2f1..604ad3dadab8 100644 --- a/databases/postgresql10-server/files/502.pgsql.in +++ b/databases/postgresql10-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 <girgen@pingpong.net> @@ -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 diff --git a/databases/postgresql11-server/files/502.pgsql.in b/databases/postgresql11-server/files/502.pgsql.in index c2d5b885d2f1..604ad3dadab8 100644 --- a/databases/postgresql11-server/files/502.pgsql.in +++ b/databases/postgresql11-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 <girgen@pingpong.net> @@ -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 diff --git a/databases/postgresql12-server/files/502.pgsql.in b/databases/postgresql12-server/files/502.pgsql.in index c2d5b885d2f1..604ad3dadab8 100644 --- a/databases/postgresql12-server/files/502.pgsql.in +++ b/databases/postgresql12-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 <girgen@pingpong.net> @@ -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 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 <girgen@pingpong.net> @@ -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 diff --git a/databases/postgresql14-server/files/502.pgsql.in b/databases/postgresql14-server/files/502.pgsql.in index 86848ad6efa3..604ad3dadab8 100644 --- a/databases/postgresql14-server/files/502.pgsql.in +++ b/databases/postgresql14-server/files/502.pgsql.in @@ -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 diff --git a/databases/postgresql15-server/files/502.pgsql.in b/databases/postgresql15-server/files/502.pgsql.in index 86848ad6efa3..604ad3dadab8 100644 --- a/databases/postgresql15-server/files/502.pgsql.in +++ b/databases/postgresql15-server/files/502.pgsql.in @@ -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