{"action":"created","comment":{"url":"https://api.github.com/repos/obiba/rserver-admin/pulls/comments/40393088","id":40393088,"diff_hunk":"@@ -0,0 +1,71 @@\n+#!/bin/sh\n+# postinst script for rserver\n+#\n+\n+set -e\n+\n+# summary of how this script can be called:\n+#        * <postinst> `configure' <most-recently-configured-version>\n+#        * <old-postinst> `abort-upgrade' <new version>\n+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>\n+#          <new-version>\n+#        * <postinst> `abort-remove'\n+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'\n+#          <failed-install-package> <version> `removing'\n+#          <conflicting-package> <version>\n+# for details, see http://www.debian.org/doc/debian-policy/ or\n+# the debian-policy package\n+\n+NAME=rserver\n+\n+[ -r /etc/default/$NAME ] && . /etc/default/$NAME\n+\n+case \"$1\" in\n+  1)\n+\n+    # Create rserver user if it doesn't exist.\n+    if ! id rserver > /dev/null 2>&1 ; then\n+      adduser --system --home /var/lib/rserver --no-create-home --disabled-password rserver\n+    fi\n+\n+    # RServer file structure on Debian\n+    # /etc/rserver: configuration\n+    # /usr/share/rserver: executable\n+    # /var/lib/rserver: data runtime\n+    # /var/log: logs\n+\n+    rm -f /usr/share/rserver\n+    ln -s /usr/share/rserver-* /usr/share/rserver\n+\n+    if [ ! -e /var/lib/rserver/conf ] ; then\n+      ln -s /etc/rserver /var/lib/rserver/conf\n+    fi\n+\n+    chown -R rserver:adm /var/lib/rserver /var/log/rserver /etc/rserver /tmp/rserver\n+    chmod -R 750      /var/lib/rserver /var/log/rserver /etc/rserver/ /tmp/rserver\n+    find /etc/rserver/ -type f | xargs chmod 640\n+\n+    # if upgrading to 2.0, delete old log4j config\n+    if [ -f \"/etc/rserver/log4j.properties\" ]; then\n+      mv /etc/rserver/log4j.properties /etc/rserver/log4j.properties.old\n+    fi\n+\n+    # Install RServe via R\n+    Rscript -e \"install.packages('Rserve', repos=c('http://cran.rstudio.com'))\"","path":"src/main/rpm/scripts/postinstall.sh","position":54,"original_position":54,"commit_id":"438793055015dcd2d9d12cb5adf3925be98697ef","original_commit_id":"438793055015dcd2d9d12cb5adf3925be98697ef","user":{"login":"ymarcon","id":2581149,"avatar_url":"https://avatars.githubusercontent.com/u/2581149?v=3","gravatar_id":"","url":"https://api.github.com/users/ymarcon","html_url":"https://github.com/ymarcon","followers_url":"https://api.github.com/users/ymarcon/followers","following_url":"https://api.github.com/users/ymarcon/following{/other_user}","gists_url":"https://api.github.com/users/ymarcon/gists{/gist_id}","starred_url":"https://api.github.com/users/ymarcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ymarcon/subscriptions","organizations_url":"https://api.github.com/users/ymarcon/orgs","repos_url":"https://api.github.com/users/ymarcon/repos","events_url":"https://api.github.com/users/ymarcon/events{/privacy}","received_events_url":"https://api.github.com/users/ymarcon/received_events","type":"User","site_admin":false},"body":"Missing argument:\r\ndependencies=TRUE","created_at":"2015-09-25T01:33:20Z","updated_at":"2015-09-25T01:33:20Z","html_url":"https://github.com/obiba/rserver-admin/pull/1#discussion_r40393088","pull_request_url":"https://api.github.com/repos/obiba/rserver-admin/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/obiba/rserver-admin/pulls/comments/40393088"},"html":{"href":"https://github.com/obiba/rserver-admin/pull/1#discussion_r40393088"},"pull_request":{"href":"https://api.github.com/repos/obiba/rserver-admin/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/obiba/rserver-admin/pulls/1","id":45959650,"html_url":"https://github.com/obiba/rserver-admin/pull/1","diff_url":"https://github.com/obiba/rserver-admin/pull/1.diff","patch_url":"https://github.com/obiba/rserver-admin/pull/1.patch","issue_url":"https://api.github.com/repos/obiba/rserver-admin/issues/1","number":1,"state":"open","locked":false,"title":"Mavenized the project and added RPM packaging","user":{"login":"kazoompa","id":2814716,"avatar_url":"https://avatars.githubusercontent.com/u/2814716?v=3","gravatar_id":"","url":"https://api.github.com/users/kazoompa","html_url":"https://github.com/kazoompa","followers_url":"https://api.github.com/users/kazoompa/followers","following_url":"https://api.github.com/users/kazoompa/following{/other_user}","gists_url":"https://api.github.com/users/kazoompa/gists{/gist_id}","starred_url":"https://api.github.com/users/kazoompa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazoompa/subscriptions","organizations_url":"https://api.github.com/users/kazoompa/orgs","repos_url":"https://api.github.com/users/kazoompa/repos","events_url":"https://api.github.com/users/kazoompa/events{/privacy}","received_events_url":"https://api.github.com/users/kazoompa/received_events","type":"User","site_admin":false},"body":"NOTE: The Debian is still not generated using Maven","created_at":"2015-09-24T22:49:47Z","updated_at":"2015-09-25T01:33:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9acec9823128ed70b2ab449d1417507a85d9c841","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/obiba/rserver-admin/pulls/1/commits","review_comments_url":"https://api.github.com/repos/obiba/rserver-admin/pulls/1/comments","review_comment_url":"https://api.github.com/repos/obiba/rserver-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/obiba/rserver-admin/issues/1/comments","statuses_url":"https://api.github.com/repos/obiba/rserver-admin/statuses/438793055015dcd2d9d12cb5adf3925be98697ef","head":{"label":"kazoompa:rhaeri-dev","ref":"rhaeri-dev","sha":"438793055015dcd2d9d12cb5adf3925be98697ef","user":{"login":"kazoompa","id":2814716,"avatar_url":"https://avatars.githubusercontent.com/u/2814716?v=3","gravatar_id":"","url":"https://api.github.com/users/kazoompa","html_url":"https://github.com/kazoompa","followers_url":"https://api.github.com/users/kazoompa/followers","following_url":"https://api.github.com/users/kazoompa/following{/other_user}","gists_url":"https://api.github.com/users/kazoompa/gists{/gist_id}","starred_url":"https://api.github.com/users/kazoompa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazoompa/subscriptions","organizations_url":"https://api.github.com/users/kazoompa/orgs","repos_url":"https://api.github.com/users/kazoompa/repos","events_url":"https://api.github.com/users/kazoompa/events{/privacy}","received_events_url":"https://api.github.com/users/kazoompa/received_events","type":"User","site_admin":false},"repo":{"id":42947446,"name":"rserver-admin","full_name":"kazoompa/rserver-admin","owner":{"login":"kazoompa","id":2814716,"avatar_url":"https://avatars.githubusercontent.com/u/2814716?v=3","gravatar_id":"","url":"https://api.github.com/users/kazoompa","html_url":"https://github.com/kazoompa","followers_url":"https://api.github.com/users/kazoompa/followers","following_url":"https://api.github.com/users/kazoompa/following{/other_user}","gists_url":"https://api.github.com/users/kazoompa/gists{/gist_id}","starred_url":"https://api.github.com/users/kazoompa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kazoompa/subscriptions","organizations_url":"https://api.github.com/users/kazoompa/orgs","repos_url":"https://api.github.com/users/kazoompa/repos","events_url":"https://api.github.com/users/kazoompa/events{/privacy}","received_events_url":"https://api.github.com/users/kazoompa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kazoompa/rserver-admin","description":"R server REST controller","fork":true,"url":"https://api.github.com/repos/kazoompa/rserver-admin","forks_url":"https://api.github.com/repos/kazoompa/rserver-admin/forks","keys_url":"https://api.github.com/repos/kazoompa/rserver-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kazoompa/rserver-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kazoompa/rserver-admin/teams","hooks_url":"https://api.github.com/repos/kazoompa/rserver-admin/hooks","issue_events_url":"https://api.github.com/repos/kazoompa/rserver-admin/issues/events{/number}","events_url":"https://api.github.com/repos/kazoompa/rserver-admin/events","assignees_url":"https://api.github.com/repos/kazoompa/rserver-admin/assignees{/user}","branches_url":"https://api.github.com/repos/kazoompa/rserver-admin/branches{/branch}","tags_url":"https://api.github.com/repos/kazoompa/rserver-admin/tags","blobs_url":"https://api.github.com/repos/kazoompa/rserver-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kazoompa/rserver-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kazoompa/rserver-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kazoompa/rserver-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kazoompa/rserver-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/kazoompa/rserver-admin/languages","stargazers_url":"https://api.github.com/repos/kazoompa/rserver-admin/stargazers","contributors_url":"https://api.github.com/repos/kazoompa/rserver-admin/contributors","subscribers_url":"https://api.github.com/repos/kazoompa/rserver-admin/subscribers","subscription_url":"https://api.github.com/repos/kazoompa/rserver-admin/subscription","commits_url":"https://api.github.com/repos/kazoompa/rserver-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kazoompa/rserver-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kazoompa/rserver-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kazoompa/rserver-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/kazoompa/rserver-admin/contents/{+path}","compare_url":"https://api.github.com/repos/kazoompa/rserver-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kazoompa/rserver-admin/merges","archive_url":"https://api.github.com/repos/kazoompa/rserver-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kazoompa/rserver-admin/downloads","issues_url":"https://api.github.com/repos/kazoompa/rserver-admin/issues{/number}","pulls_url":"https://api.github.com/repos/kazoompa/rserver-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/kazoompa/rserver-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/kazoompa/rserver-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kazoompa/rserver-admin/labels{/name}","releases_url":"https://api.github.com/repos/kazoompa/rserver-admin/releases{/id}","created_at":"2015-09-22T16:50:23Z","updated_at":"2015-09-22T16:50:24Z","pushed_at":"2015-09-24T22:48:46Z","git_url":"git://github.com/kazoompa/rserver-admin.git","ssh_url":"git@github.com:kazoompa/rserver-admin.git","clone_url":"https://github.com/kazoompa/rserver-admin.git","svn_url":"https://github.com/kazoompa/rserver-admin","homepage":null,"size":198,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"obiba:master","ref":"master","sha":"e1b599b3851171d601ea7e263ef9ad3e8a778f38","user":{"login":"obiba","id":2547522,"avatar_url":"https://avatars.githubusercontent.com/u/2547522?v=3","gravatar_id":"","url":"https://api.github.com/users/obiba","html_url":"https://github.com/obiba","followers_url":"https://api.github.com/users/obiba/followers","following_url":"https://api.github.com/users/obiba/following{/other_user}","gists_url":"https://api.github.com/users/obiba/gists{/gist_id}","starred_url":"https://api.github.com/users/obiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obiba/subscriptions","organizations_url":"https://api.github.com/users/obiba/orgs","repos_url":"https://api.github.com/users/obiba/repos","events_url":"https://api.github.com/users/obiba/events{/privacy}","received_events_url":"https://api.github.com/users/obiba/received_events","type":"Organization","site_admin":false},"repo":{"id":16587414,"name":"rserver-admin","full_name":"obiba/rserver-admin","owner":{"login":"obiba","id":2547522,"avatar_url":"https://avatars.githubusercontent.com/u/2547522?v=3","gravatar_id":"","url":"https://api.github.com/users/obiba","html_url":"https://github.com/obiba","followers_url":"https://api.github.com/users/obiba/followers","following_url":"https://api.github.com/users/obiba/following{/other_user}","gists_url":"https://api.github.com/users/obiba/gists{/gist_id}","starred_url":"https://api.github.com/users/obiba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/obiba/subscriptions","organizations_url":"https://api.github.com/users/obiba/orgs","repos_url":"https://api.github.com/users/obiba/repos","events_url":"https://api.github.com/users/obiba/events{/privacy}","received_events_url":"https://api.github.com/users/obiba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/obiba/rserver-admin","description":"R server REST controller","fork":false,"url":"https://api.github.com/repos/obiba/rserver-admin","forks_url":"https://api.github.com/repos/obiba/rserver-admin/forks","keys_url":"https://api.github.com/repos/obiba/rserver-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/obiba/rserver-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/obiba/rserver-admin/teams","hooks_url":"https://api.github.com/repos/obiba/rserver-admin/hooks","issue_events_url":"https://api.github.com/repos/obiba/rserver-admin/issues/events{/number}","events_url":"https://api.github.com/repos/obiba/rserver-admin/events","assignees_url":"https://api.github.com/repos/obiba/rserver-admin/assignees{/user}","branches_url":"https://api.github.com/repos/obiba/rserver-admin/branches{/branch}","tags_url":"https://api.github.com/repos/obiba/rserver-admin/tags","blobs_url":"https://api.github.com/repos/obiba/rserver-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/obiba/rserver-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/obiba/rserver-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/obiba/rserver-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/obiba/rserver-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/obiba/rserver-admin/languages","stargazers_url":"https://api.github.com/repos/obiba/rserver-admin/stargazers","contributors_url":"https://api.github.com/repos/obiba/rserver-admin/contributors","subscribers_url":"https://api.github.com/repos/obiba/rserver-admin/subscribers","subscription_url":"https://api.github.com/repos/obiba/rserver-admin/subscription","commits_url":"https://api.github.com/repos/obiba/rserver-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/obiba/rserver-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/obiba/rserver-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/obiba/rserver-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/obiba/rserver-admin/contents/{+path}","compare_url":"https://api.github.com/repos/obiba/rserver-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/obiba/rserver-admin/merges","archive_url":"https://api.github.com/repos/obiba/rserver-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/obiba/rserver-admin/downloads","issues_url":"https://api.github.com/repos/obiba/rserver-admin/issues{/number}","pulls_url":"https://api.github.com/repos/obiba/rserver-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/obiba/rserver-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/obiba/rserver-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/obiba/rserver-admin/labels{/name}","releases_url":"https://api.github.com/repos/obiba/rserver-admin/releases{/id}","created_at":"2014-02-06T17:32:52Z","updated_at":"2015-06-04T03:57:03Z","pushed_at":"2015-09-24T22:49:48Z","git_url":"git://github.com/obiba/rserver-admin.git","ssh_url":"git@github.com:obiba/rserver-admin.git","clone_url":"https://github.com/obiba/rserver-admin.git","svn_url":"https://github.com/obiba/rserver-admin","homepage":null,"size":413,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/obiba/rserver-admin/pulls/1"},"html":{"href":"https://github.com/obiba/rserver-admin/pull/1"},"issue":{"href":"https://api.github.com/repos/obiba/rserver-admin/issues/1"},"comments":{"href":"https://api.github.com/repos/obiba/rserver-admin/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/obiba/rserver-admin/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/obiba/rserver-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/obiba/rserver-admin/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/obiba/rserver-admin/statuses/438793055015dcd2d9d12cb5adf3925be98697ef"}}}}