fix debian init script
fix debian init script

- use start-stop-daemon's chuid feature insted of su
  - using `su -c` breaks if the git user has no usable shell
  - this fixes #1025
- put --test before --exec, instead it gets passed to gogs
- set cwd via --chdir

JonasFranzDEV/gitea,tanapoln/gogs,dnmgns/gitea,DblK/gitea,go-gitea/gitea,tanapoln/gogs,hiproz/gogs,ForxaCoLab/forxa,yonglehou/gogs,kevinc0825/gogs,gigforks/gogs,codeskyblue/gogs,DebansNetwork/gogs,Spice-King/gogs,denji/gitea_tmp,SlavikZ/gogs,psolyca/gitea,w4ngyi/gogs,liliexuan/gogs,xiaoyanit/gogs,noikiy/gogs,lucienevans/gogs,Spice-King/gogs,opavader/gogs,mapmeld/codemingler,avelino/gitea,mark77z/tt2016,tony/gogs,pikacloud/pikacode,Em-AK/gogs,manfer/gogs,Janfred/gogs,jqs7/gogs,noikiy/gogs,spacetourist/gitea,go-gitea/gitea,CaeruleusAqua/gitea,typeless/gitea,beni55/gogs,andreynering/gitea,treejames/gogs,tboerger/gitea,yonglehou/gogs,w4ngyi/gogs,Ralph-Wang/gogs,faddat/gogs,cez81/gitea,cumgun/gitea,kong36088/SCAUGogits,vdbt/gitea,avelino/gitea,haoyixin/gogs,chriswatt/gogs,odinuge/gogs,sapk-fork/gitea,admik/gitea,psolyca/gitea,richmahn/gogs,jqs7/gogs,gemili/gogs,lunny/gitea,andreynering/gitea,haoyixin/gogs,haoyixin/gogs,everhopingandwaiting/gogs,fabric8io/gogs,peterhadlaw/gogs,voxxit/gogs,denghongcai/gogs,dlob/gogs,dancewing/gogs,hzy001/gogs,jorgesumle/gitea,treejames/gogs,strk/gogs,kseistrup/gogs,sooboy/gogs,likeit92/gogs,rems4e/gitea,Em-AK/gogs,andrewrothstein/gogs,typeless/gitea,hzy001/gogs,ethantkoenig/gogs,imjerrybao/gogs,AndreaGiardini/gogs,manfer/gogs,kubatyszko/gitea,tszym/gogs,ForxaCoLab/forxa,bygreencn/gogs,everhopingandwaiting/gogs,0rax/gogs,pentix/gogs,pecastro/gogs,mark77z/tt2016,opavader/gogs,denji/gitea_tmp,helojo/gogs,Immortalin/gogs,SlavikZ/gogs,kubatyszko/gitea,tboerger/gitea,linquize/gogs,fabric8io/gogs,avelino/gitea,bkcsoft/gogs,pwelter34/gogs,xet7/gogs,xaionaro/gogs,cgars/gogs,lafriks/gitea,svcavallar/gogs,sapk-fork/gitea,GodOfConquest/gogs,Bwko/gitea,strk/gogs,yaggytter/gogs,beni55/gogs,psaavedra/gogs,CaeruleusAqua/gitea,helojo/gogs,siadat/gogs,huyueMiss/gogs,kolonse/gogs,ethantkoenig/gitea,huyueMiss/gogs,lucienevans/gogs,imjerrybao/gogs,pwelter34/gogs,richmahn/gogs,gogits/gogs,golang-lib/gogs,sapk-fork/gitea,dl5rcw/gitea,strk/gogs,AndreaGiardini/gogs,cybe/gitea,lafriks/gitea,geek1011/gitea,mpindado/gogs,armersong/gogs,sillydong/gogs,uileyar/gogs,Spice-King/gogs,tempbottle/gogs,cez81/gitea,noikiy/gogs,gogits/gogs,Bwko/gitea,0rax/gogs,DblK/gitea,likeit92/gogs,gemili/gogs,tszym/gogs,kjellkvinge/gitea,psaavedra/gogs,denji/gitea_tmp,uileyar/gogs,xet7/gogs,golang-lib/gogs,mpindado/gogs,mjwwit/gitea,yaggytter/gogs,kevinc0825/gogs,dnmgns/gitea,lucienevans/gogs,mark77z/tt2016,sillydong/gogs,pentix/gogs,kong36088/SCAUGogits,pecastro/gogs,faddat/gogs,pikacloud/pikacode,opavader/gogs,xiaoyanit/gogs,voxxit/gogs,cem/gogs,kiliit/gogs,pecastro/gogs,sapk/gogs,mukaiu/gogs,cngolang/gogs,gemili/gogs,sapk/gogs,kolonse/gogs,vdbt/gitea,mapmeld/codemingler,armersong/gogs,xaionaro/gogs,tempbottle/gogs,jqs7/gogs,cngolang/gogs,jacobxk/gogs,lafriks/gitea,0rax/gogs,peterhadlaw/gogs,kevinc0825/gogs,ForxaCoLab/forxa,tony/gogs,dancewing/gogs,uileyar/gogs,ethantkoenig/gogs,sooboy/gogs,Ralph-Wang/gogs,gigforks/gogs,sapk-fork/gitea,gwynantj/gogs,cumgun/gitea,bygreencn/gogs,Immortalin/gogs,everhopingandwaiting/gogs,golang-lib/gogs,spacetourist/gitea,Janfred/gogs,andrewrothstein/gogs,xormplus/gitea,treejames/gogs,dancewing/gogs,chriswatt/gogs,wangjild/gogs,mukaiu/gogs,cybe/gitea,kolonse/gogs,dnmgns/gitea,odinuge/gogs,kjellkvinge/gitea,typeless/gitea,sapk/gogs,odinuge/gogs,willemvd/gitea,Ralph-Wang/gogs,lunny/gitea,geerlingguy/gogs,Immortalin/gogs,cem/gogs,imjerrybao/gogs,kseistrup/gogs,gigforks/gogs,mapmeld/codemingler,liliexuan/gogs,tszym/gogs,w4ngyi/gogs,denghongcai/gogs,dlob/gogs,siadat/gogs,armersong/gogs,typeless/gitea,codeskyblue/gogs,cngolang/gogs,go-gitea/gitea,lunny/gitea,0rax/gogs,likeit92/gogs,wangjild/gogs,GodOfConquest/gogs,puffybsd/gitea,linquize/gogs,yaggytter/gogs,JonasFranzDEV/gitea,tboerger/gitea,gwynantj/gogs,mjwwit/gitea,sillydong/gogs,gwynantj/gogs,faddat/gogs,Bwko/gitea,jacobxk/gogs,pwelter34/gogs,GodOfConquest/gogs,dancewing/gogs,kong36088/SCAUGogits,bygreencn/gogs,jvanderneutstulen/gogs,Janfred/gogs,AndreaGiardini/gogs,psaavedra/gogs,Morlinest/gitea,linquize/gogs,pentix/gogs,cem/gogs,voxxit/gogs,jvanderneutstulen/gogs,avelino/gitea,denji/gitea_tmp,dlob/gogs,tanapoln/gogs,tempbottle/gogs,cgars/gogs,yonglehou/gogs,svcavallar/gogs,kiliit/gogs,everhopingandwaiting/gogs,hiproz/gogs,tony/gogs,geerlingguy/gogs,bkcsoft/gogs,geerlingguy/gogs,manfer/gogs,denghongcai/gogs,svcavallar/gogs,Em-AK/gogs,denji/gitea,beni55/gogs,hiproz/gogs,cgars/gogs,geek1011/gitea,jacobxk/gogs,xiaoyanit/gogs,makhov/gitea,hzy001/gogs,rems4e/gitea,DebansNetwork/gogs,ethantkoenig/gitea,peterhadlaw/gogs,gogits/gogs,xaionaro/gogs,vCaesar/gitea,DebansNetwork/gogs,cez81/gitea,jvanderneutstulen/gogs,siadat/gogs,chriswatt/gogs,bkcsoft/gogs,SlavikZ/gogs,kjellkvinge/gitea,gigforks/gogs,kiliit/gogs,codeskyblue/gogs,fabric8io/gogs,kseistrup/gogs,xet7/gogs,mukaiu/gogs,wangjild/gogs,andrewrothstein/gogs,Morlinest/gitea,mpindado/gogs,vCaesar/gitea,sooboy/gogs,helojo/gogs,kubatyszko/gitea,jorgesumle/gitea,minecrafter/gitea,huyueMiss/gogs,liliexuan/gogs,pikacloud/pikacode