{"action":"created","issue":{"url":"https://api.github.com/repos/ldleman/yana-server/issues/104","labels_url":"https://api.github.com/repos/ldleman/yana-server/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/ldleman/yana-server/issues/104/comments","events_url":"https://api.github.com/repos/ldleman/yana-server/issues/104/events","html_url":"https://github.com/ldleman/yana-server/issues/104","id":45866933,"number":104,"title":"erreur d'installation 2","user":{"login":"thib3113","id":5489218,"avatar_url":"https://avatars.githubusercontent.com/u/5489218?v=3","gravatar_id":"","url":"https://api.github.com/users/thib3113","html_url":"https://github.com/thib3113","followers_url":"https://api.github.com/users/thib3113/followers","following_url":"https://api.github.com/users/thib3113/following{/other_user}","gists_url":"https://api.github.com/users/thib3113/gists{/gist_id}","starred_url":"https://api.github.com/users/thib3113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thib3113/subscriptions","organizations_url":"https://api.github.com/users/thib3113/orgs","repos_url":"https://api.github.com/users/thib3113/repos","events_url":"https://api.github.com/users/thib3113/events{/privacy}","received_events_url":"https://api.github.com/users/thib3113/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"maditnerd","id":2841495,"avatar_url":"https://avatars.githubusercontent.com/u/2841495?v=3","gravatar_id":"","url":"https://api.github.com/users/maditnerd","html_url":"https://github.com/maditnerd","followers_url":"https://api.github.com/users/maditnerd/followers","following_url":"https://api.github.com/users/maditnerd/following{/other_user}","gists_url":"https://api.github.com/users/maditnerd/gists{/gist_id}","starred_url":"https://api.github.com/users/maditnerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maditnerd/subscriptions","organizations_url":"https://api.github.com/users/maditnerd/orgs","repos_url":"https://api.github.com/users/maditnerd/repos","events_url":"https://api.github.com/users/maditnerd/events{/privacy}","received_events_url":"https://api.github.com/users/maditnerd/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2014-10-15T13:41:28Z","updated_at":"2015-01-06T12:05:17Z","closed_at":null,"body":"```shell\r\n[....] Starting web server: lighttpd2014-10-15 13:38:40: (network.c.405) can't bind to port:  80 Address already in use \r\n failed!\r\n```\r\nil semblerais que il y ai un soucis avec la vérification des webserver"},"comment":{"url":"https://api.github.com/repos/ldleman/yana-server/issues/comments/68857571","html_url":"https://github.com/ldleman/yana-server/issues/104#issuecomment-68857571","issue_url":"https://api.github.com/repos/ldleman/yana-server/issues/104","id":68857571,"user":{"login":"maditnerd","id":2841495,"avatar_url":"https://avatars.githubusercontent.com/u/2841495?v=3","gravatar_id":"","url":"https://api.github.com/users/maditnerd","html_url":"https://github.com/maditnerd","followers_url":"https://api.github.com/users/maditnerd/followers","following_url":"https://api.github.com/users/maditnerd/following{/other_user}","gists_url":"https://api.github.com/users/maditnerd/gists{/gist_id}","starred_url":"https://api.github.com/users/maditnerd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maditnerd/subscriptions","organizations_url":"https://api.github.com/users/maditnerd/orgs","repos_url":"https://api.github.com/users/maditnerd/repos","events_url":"https://api.github.com/users/maditnerd/events{/privacy}","received_events_url":"https://api.github.com/users/maditnerd/received_events","type":"User","site_admin":false},"created_at":"2015-01-06T12:05:17Z","updated_at":"2015-01-06T12:05:17Z","body":"J'avais uploadé ça en douce (c'est pas bien :-1: )\r\n\r\nMa vérif pour tester si un paquet est installé à l'air d'être dépendant de la langue du système (les locales)\r\n````dpkg -s \"$1\"|grep \"Status: install ok installed\" > /dev/null 2>&1````\r\nAvec\r\n````dpkg-query -l \"$1\" | grep \"ii\" > /dev/null 2>&1````\r\nLe problème ne devrait pas se poser\r\n\r\nPar contre, j'ai remarqué quelque-chose, si apache2 a été désinstallé avec\r\n````apt-get remove apache2````\r\nIl n'est pas vraiment désinstallé, (les fichiers binaires/le script de démarrage dans /etc/init.d sont toujours là car il sont considérés comme des dépendances)\r\nSeul un ````apt-get autoremove```` le supprime pour de vrai\r\n\r\nDonc pour vraiment bien faire les choses, il est peut être plus prudent de vérifier l’existence de\r\n* /usr/sbin/apache2\r\n* /usr/sbin/nginx\r\n\r\nJ'ai choisi la méthode de la vérification de l'existance des fichiers, mais je peux remettre le check de dpkg si vous préférez.\r\n\r\nVoilà le nouveau code:\r\nhttps://gist.github.com/maditnerd/2fbd056df6d42090a307\r\n\r\nQuestion piège pour @ldleman  : \r\n* Je le pull request ?\r\n* Je le commit ?\r\n* Où je te laisse faire ?"}}