diff options
author | khorben <khorben@pkgsrc.org> | 2022-03-23 23:41:14 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2022-03-23 23:41:14 +0000 |
commit | 445cb19c0796547eee202344bd11c3c96be4e4e5 (patch) | |
tree | 6e9c67b3d5951018c51aff4c546db8f1e33018c9 /www | |
parent | 5ffcc54f384fecdae1650d571caf92cf2045f1e9 (diff) | |
download | pkgsrc-445cb19c0796547eee202344bd11c3c96be4e4e5.tar.gz |
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 (limited to 'www')
-rw-r--r-- | www/gitea/Makefile | 4 | ||||
-rw-r--r-- | www/gitea/files/gitea.sh | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/www/gitea/Makefile b/www/gitea/Makefile index 40c7380136b..3030ba01fe9 100644 --- a/www/gitea/Makefile +++ b/www/gitea/Makefile @@ -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 --git a/www/gitea/files/gitea.sh b/www/gitea/files/gitea.sh index f1e39404624..868b5463dde 100644 --- a/www/gitea/files/gitea.sh +++ b/www/gitea/files/gitea.sh @@ -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_env="${gitea_env} USER=@GITEA_USER@" gitea_user="@GITEA_USER@" gitea_group="@GITEA_GROUP@" +cd / + load_rc_config $name run_rc_command "$1" |