Closed M5oul closed 8 years ago
Ok, finally, I succed with:
root@moulinette:~# mysql -u root -p$(sudo cat /etc/yunohost/mysql) < login_source.sql
root@moulinette:~# curl --user moul:psswd http://localhost:6000 > /dev/null
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5348 0 5348 0 0 87500 0 --:--:-- --:--:-- --:--:-- 89133
root@moulinette:~# mysql -u root -p$(sudo cat /etc/yunohost/mysql) < add_admin.sql
root@moulinette:~# sudo service gogs restart
I do not know why it fail in the install script.
It is may be linked to Failed to open /dev/tty: No such device or address
errors.
May be root rights are needed.
Well I did have a similar behaviour the first time I tried @Josue-T pull request but after a reboot of my server and a reinstall everything went right so I don't really know what happen.
I think the error "Failed to open /dev/tty: No such device or address" is not related, since Jessie I have this error for all app that use "sudo service someservice someaction"
Ok, I understand, account is linked to LDAP. We log-in with YunoHost account and not with the one we created. So password asking and co is useless.
I think everything in this issue has been fixed. I've changed the way the admin user is created (now it's a ldap filter) so there is no longer curl call.
Thanks @Josue-T and @mbugeia for that package. I installed gogs on my ARM board and I encounter two issues:
sudo yunohost app checkurl moul.re/repo -a gogs
did not tell me this domain/path is ever used. That is strange. I installed a secound time. It works./gogs
path. I think there is an error at database creation and the curl command failed. I could go to gogs web interface :smile: but I couldn't log-in…