{"action":"created","issue":{"url":"https://api.github.com/repos/vespene-io/vespene/issues/61","repository_url":"https://api.github.com/repos/vespene-io/vespene","labels_url":"https://api.github.com/repos/vespene-io/vespene/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/vespene-io/vespene/issues/61/comments","events_url":"https://api.github.com/repos/vespene-io/vespene/issues/61/events","html_url":"https://github.com/vespene-io/vespene/issues/61","id":376170506,"node_id":"MDU6SXNzdWUzNzYxNzA1MDY=","number":61,"title":"Support Debian Stretch in install","user":{"login":"rafadevdb","id":4355469,"node_id":"MDQ6VXNlcjQzNTU0Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/4355469?v=4","gravatar_id":"","url":"https://api.github.com/users/rafadevdb","html_url":"https://github.com/rafadevdb","followers_url":"https://api.github.com/users/rafadevdb/followers","following_url":"https://api.github.com/users/rafadevdb/following{/other_user}","gists_url":"https://api.github.com/users/rafadevdb/gists{/gist_id}","starred_url":"https://api.github.com/users/rafadevdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafadevdb/subscriptions","organizations_url":"https://api.github.com/users/rafadevdb/orgs","repos_url":"https://api.github.com/users/rafadevdb/repos","events_url":"https://api.github.com/users/rafadevdb/events{/privacy}","received_events_url":"https://api.github.com/users/rafadevdb/received_events","type":"User","site_admin":false},"labels":[{"id":1110746403,"node_id":"MDU6TGFiZWwxMTEwNzQ2NDAz","url":"https://api.github.com/repos/vespene-io/vespene/labels/p=2","name":"p=2","color":"ffff00","default":false},{"id":1109897356,"node_id":"MDU6TGFiZWwxMTA5ODk3MzU2","url":"https://api.github.com/repos/vespene-io/vespene/labels/t=feature","name":"t=feature","color":"13b6f7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-31T21:38:01Z","updated_at":"2018-11-02T00:42:26Z","closed_at":null,"author_association":"NONE","body":"Consider change the way to check the operating system debian during installation\r\n\r\nDebian is independent of Ubuntu even though the same package manager is used. (APT)\r\n\r\nIssues during install on debian 9.5 (dist-upgrade):\r\n\r\n1_prepare.sh \r\nsudo apt-add-repository universe\r\nError: 'universe' invalid\r\n\r\n2_database.sh\r\nelif [[ \"$DISTRO\" == \"ubuntu\" ]]; then\r\n   sudo apt install -y postgresql postgresql-contrib\r\n   CONFIG=\"/etc/postgresql/10/main/pg_hba.conf\"\r\n\r\nThe base repository in debian installs  postgres9.6 then not exist /etc/postgresl/10/... and CONFIG fail.\r\n\r\ntee: /etc/postgresql/10/main/pg_hba.conf:  ----> No such file or directory\r\n\r\nIs it necessary to install postgresql10 version ? if is yes should use \"PostgreSQL Apt Repository\"\r\nhttps://www.postgresql.org/download/linux/debian/"},"comment":{"url":"https://api.github.com/repos/vespene-io/vespene/issues/comments/435234068","html_url":"https://github.com/vespene-io/vespene/issues/61#issuecomment-435234068","issue_url":"https://api.github.com/repos/vespene-io/vespene/issues/61","id":435234068,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTIzNDA2OA==","user":{"login":"rafadevdb","id":4355469,"node_id":"MDQ6VXNlcjQzNTU0Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/4355469?v=4","gravatar_id":"","url":"https://api.github.com/users/rafadevdb","html_url":"https://github.com/rafadevdb","followers_url":"https://api.github.com/users/rafadevdb/followers","following_url":"https://api.github.com/users/rafadevdb/following{/other_user}","gists_url":"https://api.github.com/users/rafadevdb/gists{/gist_id}","starred_url":"https://api.github.com/users/rafadevdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafadevdb/subscriptions","organizations_url":"https://api.github.com/users/rafadevdb/orgs","repos_url":"https://api.github.com/users/rafadevdb/repos","events_url":"https://api.github.com/users/rafadevdb/events{/privacy}","received_events_url":"https://api.github.com/users/rafadevdb/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T00:42:26Z","updated_at":"2018-11-02T00:42:26Z","author_association":"NONE","body":"@muki  If someone has a stable version (debian 9.x) and previously did'n install postgresql so from 2_database.sh script should install 9.6 and not 10. \r\nI think the best option is not to confuse on code.\r\nI've updated the  scripts adding the following lines\r\nscript 0_common.sh\r\n```\r\nelif [ -f /usr/bin/apt ]; then\r\n      OS=$(lsb_release -si)\r\n      if [ \"$OS\" == \"Debian\" ]; then\r\n         echo \"detected Debian\"\r\n         DISTRO=\"debian\"\r\n         PYTHON=\"/usr/bin/python3\"\r\n         PIP=\"/usr/bin/pip3\"\r\n      elif [ \"$OS\" == \"Ubuntu\" ]; then\r\n         echo \"detected Ubuntu\"\r\n         DISTRO=\"ubuntu\"\r\n         PYTHON=\"/usr/bin/python3\"\r\n         PIP=\"/usr/bin/pip3\"\r\n```\r\n\r\n1_prepare.sh\r\n\r\n```\r\nelif [ \"$DISTRO\" == \"debian\" ]; then\r\n    sudo apt-get update\r\n    sudo apt-get install -y gcc libssl-dev postgresql-client python3 python3-pip python3-setuptools supervisor\r\n\r\n```\r\n2_database.sh \r\n\r\n```\r\nelif [[ \"$DISTRO\" == \"debian\" ]]; then\r\n   sudo apt install -y postgresql postgresql-contrib\r\n   CONFIG=\"/etc/postgresql/9.6/main/pg_hba.conf\"\r\n```\r\n\r\nand it works ok I also need to check it in ubuntu "}}
{"actor":{"display_login":"rafadevdb"}}