Merge branch 'master' into dist/eole/2.6.2/master
This commit is contained in:
commit
de9406ab4d
|
@ -47,6 +47,7 @@ fi
|
||||||
if [[ ! -d ${APPDIR} ]]
|
if [[ ! -d ${APPDIR} ]]
|
||||||
then
|
then
|
||||||
mkdir -p ${APPDIR}
|
mkdir -p ${APPDIR}
|
||||||
|
chown ${USER}:${GROUP} ${APPDIR} -R
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create app user and group
|
# Create app user and group
|
||||||
|
@ -70,6 +71,7 @@ chmod 770 ${APPCONFDIR}
|
||||||
if [[ ! -d ${APPBINDIR} ]]
|
if [[ ! -d ${APPBINDIR} ]]
|
||||||
then
|
then
|
||||||
mkdir -p ${APPBINDIR}
|
mkdir -p ${APPBINDIR}
|
||||||
|
chown ${USER}:${GROUP} ${APPBINDIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $APPBINDIR
|
cd $APPBINDIR
|
||||||
|
|
|
@ -14,8 +14,8 @@ RestartSec=2s
|
||||||
Type=simple
|
Type=simple
|
||||||
User=git
|
User=git
|
||||||
Group=gitservice
|
Group=gitservice
|
||||||
WorkingDirectory=/srv/forge/gitea/bin/gitea
|
WorkingDirectory=/srv/forge/gitea/bin/
|
||||||
ExecStart=/srv/forge/gitea/bin/gitea/gitea web
|
ExecStart=/srv/forge/gitea/bin/gitea web -c /etc/gitea/conf/app.ini
|
||||||
Restart=always
|
Restart=always
|
||||||
Environment=USER=git HOME=/srv/forge/git
|
Environment=USER=git HOME=/srv/forge/git
|
||||||
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||||
|
|
Loading…
Reference in New Issue