FreeBSD Bugzilla – Attachment 226736 Details for
Bug 255009
www/gitea: do not chown existing directories
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Move creating of work dirs from pkg-plist to startup script
gitea-dynamic-workdirs.patch (text/plain), 806 bytes, created by
Stefan Bethke
on 2021-07-27 13:04:13 UTC
(
hide
)
Description:
Move creating of work dirs from pkg-plist to startup script
Filename:
MIME Type:
Creator:
Stefan Bethke
Created:
2021-07-27 13:04:13 UTC
Size:
806 bytes
patch
obsolete
>diff --git a/www/gitea/files/gitea.in b/www/gitea/files/gitea.in >index 8354dfb4d..5e75ad5d5 100644 >--- a/www/gitea/files/gitea.in >+++ b/www/gitea/files/gitea.in >@@ -31,6 +31,12 @@ pidfile="/var/run/${name}.pid" > start_cmd="${name}_start" > > gitea_start() { >+ for d in /var/db/gitea /var/log/gitea; do >+ if [ ! -e "$d" ]; then >+ mkdir "$d" >+ chown ${gitea_user} "$d" >+ fi >+ done > /usr/sbin/daemon %%DAEMONARGS%% \ > -u ${gitea_user} -p ${pidfile} \ > /usr/bin/env -i \ >diff --git a/www/gitea/pkg-plist b/www/gitea/pkg-plist >index 99e637f46..209e1c8e3 100644 >--- a/www/gitea/pkg-plist >+++ b/www/gitea/pkg-plist >@@ -1,8 +1,3 @@ > @sample %%ETCDIR%%/conf/app.ini.sample > %%ETCDIR%%/conf/app.ini.defaults > sbin/gitea >-@owner git >-@group git >-@dir /var/db/gitea >-@dir /var/log/gitea >-@dir /var/run/gitea
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
stb
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 255009
: 226736