Updating init script and systemd configuration
This commit is contained in:
parent
32bd3d19f6
commit
8619edb520
|
@ -47,6 +47,7 @@ fi
|
|||
if [[ ! -d ${APPDIR} ]]
|
||||
then
|
||||
mkdir -p ${APPDIR}
|
||||
chown ${USER}:${GROUP} ${APPDIR} -R
|
||||
fi
|
||||
|
||||
# Create app user and group
|
||||
|
@ -70,6 +71,7 @@ chmod 770 ${APPCONFDIR}
|
|||
if [[ ! -d ${APPBINDIR} ]]
|
||||
then
|
||||
mkdir -p ${APPBINDIR}
|
||||
chown ${USER}:${GROUP} ${APPBINDIR}
|
||||
fi
|
||||
|
||||
cd $APPBINDIR
|
||||
|
|
|
@ -15,7 +15,7 @@ Type=simple
|
|||
User=git
|
||||
Group=gitservice
|
||||
WorkingDirectory=/srv/forge/gitea/bin/
|
||||
ExecStart=/srv/forge/gitea/bin/gitea web
|
||||
ExecStart=/srv/forge/gitea/bin/gitea web -c /etc/gitea/conf/app.ini
|
||||
Restart=always
|
||||
Environment=USER=git HOME=/srv/forge/git
|
||||
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
|
|
Loading…
Reference in New Issue