Open babolivier opened 8 years ago
You should add a file "/etc/cozy/self-hosting.json". Exemple in Debian package: https://github.com/cozy/cozy-debian/blob/master/self-hosting.json
And allow to used it from sudo: https://github.com/cozy/cozy-debian/blob/master/sudoers.d_cozy-self-hosting
The code used in app is here: https://github.com/cozy/cozy-self-hosting/blob/master/server/controllers/debian.js#L18-L19
Install app with right user: https://github.com/cozy/cozy-debian/blob/master/debian/cozy-app-self-hosting.postinst#L27
cozy-monitor install self-hosting -r https://github.com/cozy/cozy-self-hosting.git
I did all of that. It doesn't explain the sudo error :/
Currently, the
self-hosted
app is designed in a way that only allows configuration on Debian-based architectures. We'll need to adapt this, mainly by replacing thedebian-reconfigure-cozy-domain.sh
file.By the way, @nledez, could you please tell me if the app is working on your side? Here, I get some
in the logs, even with the
cozy-self-hosting ALL=NOPASSWD: /usr/local/sbin/debian-reconfigure-cozy-domain.sh
line in the sudoers file. I may come from a divergence between sudoer files on Debian and on Archlinux, but I don't really see where as I don't have theDefault requiretty
line in my file.