gogs/gitea: Ensure subdirs are present
* See https://github.com/Martchus/PKGBUILDs/issues/38#issuecomment-326621213 * Not sure whether it is actually required
This commit is contained in:
parent
9423dcd9b0
commit
3893cbcaf5
|
@ -8,7 +8,7 @@ _gourl=code.$_pkgname.io/$_pkgname
|
|||
|
||||
pkgname=${_pkgname}
|
||||
pkgver=1.1.3
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
#epoch=
|
||||
pkgdesc='Self Hosted Git Service written in Go'
|
||||
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
||||
|
|
|
@ -9,6 +9,12 @@ pre_install() {
|
|||
}
|
||||
|
||||
post_install(){
|
||||
# ensure subdirs in data dir are present
|
||||
for subdir in avatars repos certs data/sessions data/tmp; do
|
||||
mkdir -p /var/lib/gitea/$subdir
|
||||
done
|
||||
|
||||
# ensure ownership is correct
|
||||
chown -R gitea:gitea /var/log/gitea
|
||||
chown -R gitea:gitea /var/lib/gitea
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ _gourl=github.com/gogits/$_pkgname
|
|||
|
||||
pkgname=$_pkgname
|
||||
pkgver=0.11.29
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
epoch=1
|
||||
pkgdesc='Self Hosted Git Service written in Go'
|
||||
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
||||
|
|
|
@ -9,6 +9,12 @@ pre_install() {
|
|||
}
|
||||
|
||||
post_install(){
|
||||
# ensure subdirs in data dir are present
|
||||
for subdir in avatars repos certs data/sessions data/tmp; do
|
||||
mkdir -p /var/lib/gogs/$subdir
|
||||
done
|
||||
|
||||
# ensure ownership is correct
|
||||
chown -R gogs:gogs /var/log/gogs
|
||||
chown -R gogs:gogs /var/lib/gogs
|
||||
|
||||
|
|
Loading…
Reference in New Issue