From nobody Wed Sep 14 04:11:29 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MS6N13RvZz4c8Nc; Wed, 14 Sep 2022 04:11:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MS6N130WZz46cs; Wed, 14 Sep 2022 04:11:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663128689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dy5U3QkWBenLZueZzgD1eBwjiyxwowLo30MoMZbuqjc=; b=pPcWHgZnrlZAyeuRozSvdSV7q71YPlgDvxXr6Syh2LCvZUSdmzZ1MdjqDAVXBm31/7B5CK vIt7+FUX4fLuQAC/8NQdNVQkNuS9pYme3tS+8KNm4pg3D8TJdSRl5bjfujcs3ml2Adavy+ KgWJ7w0oqU2PqfotvxjlPY4uQHbEHGisyJsE63d7XYaDYGqFgk4NJ0CrLTXNUI1OjBwKFH xgyvRdp4lnvWAVvPobFmspmKRbyKB02h39B5xn+VBTzAvncvVXdIo+1GI6Ua2Fi1UGWrIt nlV8hBWCv8k8mOX95kbaz4BJ9YtpVra+4luh56gBeHI1G9Cfu/Da5v3hpKIHDA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MS6N123vXzYll; Wed, 14 Sep 2022 04:11:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 28E4BT9B042106; Wed, 14 Sep 2022 04:11:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 28E4BTWl042105; Wed, 14 Sep 2022 04:11:29 GMT (envelope-from git) Date: Wed, 14 Sep 2022 04:11:29 GMT Message-Id: <202209140411.28E4BTWl042105@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Alexey Dokuchaev Subject: git: d06aa00bb41c - main - databases/postgresql*-server: fix minor style bugs in maintenance script List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: danfe X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d06aa00bb41c25880dd99fef34b5c97704af4a33 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1663128689; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dy5U3QkWBenLZueZzgD1eBwjiyxwowLo30MoMZbuqjc=; b=VRAhoBM9TnQZChZCq9rqycSnyt2CYRPBzlDHHlCvZCHbAPRypfbGEobeyrWmSuPhKltfMb uijOvSCE53jmg4fHsB3w1PnE5FYIAW6F9NoNv4XUsNwKMb57kPNM8wX0ELHGSAm+z67z4f yt+120Wi3TXJaEcewATpBXNhfHHhxLk1kbykamegfWBO669O7Brgh4hnbZqufmrIjlUMaP rgKAU4YNkaYeF0Q8692dY+bHbzDs1ZjaNio2s9sr5M/vHJFVzBGNoKNBH3kvB9ThCiRxAe GzdsZrnFCt796UOrK0wpG48AId8CobzyTJljq9Sf5y3ZCVcWAc3Yc44AEm+//g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1663128689; a=rsa-sha256; cv=none; b=UTYQlqgbD+2oWcDz45XDhA0SeBq6qYPwF9f30iFhGTQqKtPFhFvozXDE9bRHziA+wFLu87 IFOW7MJoqTrpY1IoU6W2RoBZImRpUvHYnrpkgwySAm0HxHIQkX663Q04JQgqGx3G8CW7Z4 m82qWP6/cRqAeRp46d9+UF6Kbyf6HKsFVb7Enp6hXXIUuiZlcrkO0le31xN22t14Wzmu2W /nQl4e4zJdPBTINCxhKe226sx5Ir/rKOs8SKbIuS7MwBih2Kax3rEiWDFnX2MZ0pZNAl6y rZxm09AwL59s3SeQcUBrl4VK5DoPRuoYv1koPh2vzKRvtCv7cPPOuB5I1zu7BQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=d06aa00bb41c25880dd99fef34b5c97704af4a33 commit d06aa00bb41c25880dd99fef34b5c97704af4a33 Author: Alexey Dokuchaev AuthorDate: 2022-09-14 04:10:22 +0000 Commit: Alexey Dokuchaev 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 @@ -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 @@ -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 @@ -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 @@ -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