mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
gogs: create required dirs in the runit service instead.
This commit is contained in:
parent
8acacc8aab
commit
042c7e4144
2 changed files with 8 additions and 10 deletions
|
@ -7,5 +7,10 @@ exec 2>&1
|
||||||
cd $HOME
|
cd $HOME
|
||||||
export HOME
|
export HOME
|
||||||
export USER
|
export USER
|
||||||
exec chpst -u $USER:$GROUP -P \
|
|
||||||
gogs web --config /etc/gogs.ini
|
for f in ${HOME}/repo ${HOME}/data/avatars ${HOME}/data/attachment /var/log/gogs; do
|
||||||
|
mkdir -p $f
|
||||||
|
chown ${USER}:${GROUP} $f
|
||||||
|
done
|
||||||
|
|
||||||
|
exec chpst -u $USER:$GROUP -P gogs web --config /etc/gogs.ini
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'gogs'
|
# Template build file for 'gogs'
|
||||||
pkgname=gogs
|
pkgname=gogs
|
||||||
version=0.9.13
|
version=0.9.13
|
||||||
revision=2
|
revision=3
|
||||||
build_style=go
|
build_style=go
|
||||||
go_import_path="github.com/gogits/gogs"
|
go_import_path="github.com/gogits/gogs"
|
||||||
short_desc="Self-hosted Git Service in Go"
|
short_desc="Self-hosted Git Service in Go"
|
||||||
|
@ -17,13 +17,6 @@ conf_files="/etc/gogs.ini"
|
||||||
system_accounts="gogs"
|
system_accounts="gogs"
|
||||||
gogs_homedir="/srv/gogs"
|
gogs_homedir="/srv/gogs"
|
||||||
gogs_shell="/bin/bash"
|
gogs_shell="/bin/bash"
|
||||||
make_dirs="
|
|
||||||
/srv/gogs 0755 gogs gogs
|
|
||||||
/srv/gogs/repo 0755 gogs gogs
|
|
||||||
/srv/gogs/data 0755 gogs gogs
|
|
||||||
/srv/gogs/data/avatars 0755 gogs gogs
|
|
||||||
/srv/gogs/data/attachments 0755 gogs gogs
|
|
||||||
/var/log/gogs 0755 gogs gogs"
|
|
||||||
|
|
||||||
export CGO_ENABLED=1
|
export CGO_ENABLED=1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue