I’m trying to package Gitea (Gogs fork) git forge for Yunohost right now and wanted to let you know if you want to try the package.
For now the package is not working, the installation hangs on :
# Wait till login_source mysql table is created
while ! $(ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" <<< "SELECT * FROM login_source;" &>/dev/null)
do
sleep 2
done
It ran the command all night long ans totally freezed my Rpi3.
As I’m no kind of dev I’m trying to debunk that issue ans want your help if you can do anything.
I was able to fix the installation script for the last Gitea version. Could you test to confirm with a fresh install ?
I don’t considered the update script for now.
I saw your PR, I implied to try merging your PR and mine, i should have made clearer, my bad.
So it works, cool !
What is the point to add group owner for this file ? It doesn’t seem necessary. Like “sudo”, it works without.
I noticed you replace “gitea” by $app, you’re right. The file needs more consistency for this point.
Maybe we (or @Bridouz ?) could merge this two PR for a functionnal installation and focus on a rework with new helpers then ?
I think the original maintainer is not vailable any more.
So, if you have time to merge the PR, please do. I’ll gladly help where I can.
Regarding the unnecessary sudo and group owner, I only did it in an attempt to find where the error was coming from, futureproof and provide a consistent reading time.
I know yunohost helpers have changed quite a bit lately, so if anyone with a better understanding want to help, feel free.