pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/gitea gitea: minor fix to the RC script



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a1c605894ad6
branches:  trunk
changeset: 375734:a1c605894ad6
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Wed Mar 23 23:41:14 2022 +0000

description:
gitea: minor fix to the RC script

This sets the working directory to / before issuing commands to Gitea.
Fix from the pgsql script; it addresses the following issue when
managing Gitea:

  # /etc/rc.d/gitea restart
  Stopping gitea.
  sh: Cannot determine current working directory
  Starting gitea.
  sh: Cannot determine current working directory

(and then Gitea not starting again)

Bumps PKGREVISION.

During freeze, but leaf package AFAICT.

Tested on NetBSD/amd64.

diffstat:

 www/gitea/Makefile       |  4 ++--
 www/gitea/files/gitea.sh |  4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 101a0bffb337 -r a1c605894ad6 www/gitea/Makefile
--- a/www/gitea/Makefile        Wed Mar 23 23:35:54 2022 +0000
+++ b/www/gitea/Makefile        Wed Mar 23 23:41:14 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.67 2022/03/07 09:14:13 bsiegert Exp $
+# $NetBSD: Makefile,v 1.68 2022/03/23 23:41:14 khorben Exp $
 
 DISTNAME=      gitea-1.16.1
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=go-gitea/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 
diff -r 101a0bffb337 -r a1c605894ad6 www/gitea/files/gitea.sh
--- a/www/gitea/files/gitea.sh  Wed Mar 23 23:35:54 2022 +0000
+++ b/www/gitea/files/gitea.sh  Wed Mar 23 23:41:14 2022 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: gitea.sh,v 1.4 2021/11/18 02:45:29 khorben Exp $
+# $NetBSD: gitea.sh,v 1.5 2022/03/23 23:41:14 khorben Exp $
 #
 # PROVIDE: gitea
 # REQUIRE: DAEMON
@@ -25,5 +25,7 @@
 gitea_user="@GITEA_USER@"
 gitea_group="@GITEA_GROUP@"
 
+cd /
+
 load_rc_config $name
 run_rc_command "$1"



Home | Main Index | Thread Index | Old Index