fix gitea
This commit is contained in:
parent
590bb561ad
commit
38ded86d9f
6 changed files with 6 additions and 6 deletions
|
@ -89,8 +89,6 @@ wget -qO - https://deb.lgy.fr/install.sh | bash
|
|||
apt-get update
|
||||
apt-get install -y gitea
|
||||
|
||||
#Edit /etc/gitea/app.ini
|
||||
|
||||
systemctl enable --now gitea
|
||||
|
||||
#configuration with http://<ip>:3000
|
||||
|
|
|
@ -31,7 +31,7 @@ envinit() {
|
|||
|
||||
prebuild(){
|
||||
[ -e /tmp/git ] && rm -fr /tmp/git
|
||||
[ -e /tmp/element-web ] || mkdir /tmp/${APP}
|
||||
[ -e /tmp/${APP} ] || mkdir /tmp/${APP}
|
||||
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
|
||||
cp -r /tmp/git/. /tmp/${APP}
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ envinit() {
|
|||
|
||||
prebuild(){
|
||||
[ -e /tmp/git ] && rm -fr /tmp/git
|
||||
[ -e /tmp/element-web ] || mkdir /tmp/${APP}
|
||||
[ -e /tmp/${APP} ] || mkdir /tmp/${APP}
|
||||
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
|
||||
cp -r /tmp/git/. /tmp/${APP}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
VERSION=1.16.3
|
||||
RELEASE=2
|
||||
RELEASE=5
|
||||
|
||||
[ -e ./lib/function.sh ] && source ./lib/function.sh
|
||||
|
||||
|
@ -30,7 +30,7 @@ envinit() {
|
|||
|
||||
prebuild(){
|
||||
[ -e /tmp/git ] && rm -fr /tmp/git
|
||||
[ -e /tmp/element-web ] || mkdir /tmp/${APP}
|
||||
[ -e /tmp/${APP} ] || mkdir /tmp/${APP}
|
||||
git clone --depth 1 -b ${GIT_VERSION} ${DEPOT} /tmp/git
|
||||
cp -r /tmp/git/. /tmp/${APP}
|
||||
}
|
||||
|
|
|
@ -3,5 +3,6 @@ Version: %VERSION%
|
|||
Section: base
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: git
|
||||
Maintainer: Thomas Legay <thomas@syngate.fr>
|
||||
Description: gitea
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
id gitea &> /dev/null || useradd gitea -r -s /bin/false -d /var/lib/gitea/
|
||||
|
||||
chown -R gitea:gitea /var/lib/gitea/
|
||||
chown gitea:gitea /etc/gitea/app.ini
|
||||
|
|
Loading…
Reference in a new issue