{"action":"created","comment":{"url":"https://api.github.com/repos/eclipse/kura/pulls/comments/108921352","pull_request_review_id":29986518,"id":108921352,"diff_hunk":"@@ -144,10 +224,101 @@ function require_java_8 {\n # END JAVA 8 CHECK FUNCTION\n ##############################################\n \n+function kura_install {\n+\t##############################################\n+\t# PRE-INSTALL SCRIPT\n+\t##############################################\n+\t\n+\trm -rf kura-*.zip >> $LOG 2>&1\n+\trm -rf kura_*.zip >> $LOG 2>&1\n+\t\n+\t#add existing files to backup\n+\tBACKUP_FILES+=(\"/opt/eclipse/data\")\n+\tBACKUP_FILES+=(\"/opt/eclipse/kura*\")\n+\tBACKUP_FILES+=(\"${INSTALL_DIR}/kura*\")\n+\tBACKUP_FILES+=(\"/tmp/.kura/\")\n+\tBACKUP_FILES+=(\"/tmp/coninfo-*\")\n+\tBACKUP_FILES+=(\"/var/log/esf.log\")\n+\tBACKUP_FILES+=(\"/var/log/kura.log\")\n+\tBACKUP_FILES+=(\"/etc/rc*.d/S*esf\")\n+\tBACKUP_FILES+=(\"/etc/rc*.d/S*kura\")\n+\tBACKUP_FILES+=(\"/etc/rc*.d/K*esf\")\n+\tBACKUP_FILES+=(\"/etc/rc*.d/K*kura\")\n+\tBACKUP_FILES+=(\"/etc/init.d/kura*\")\n+\tBACKUP_FILES+=(\"/etc/init.d/firewall\")\n+\tBACKUP_FILES+=(\"/etc/dhcpd-*.conf\")\n+\tBACKUP_FILES+=(\"/etc/named.conf\")\n+\tBACKUP_FILES+=(\"/etc/wpa_supplicant.conf\")\n+\tBACKUP_FILES+=(\"/etc/hostapd.conf\")\n+\tBACKUP_FILES+=(\"/etc/ppp/chat\")\n+\tBACKUP_FILES+=(\"/etc/ppp/peers\")\n+\tBACKUP_FILES+=(\"/etc/ppp/scripts\")\n+\tBACKUP_FILES+=(\"/etc/ppp/*ap-secrets\")\n+\t\n+\t#clean up and/or install OS specific stuff\n+\tHOSTNAME=`hostname`\n+\tif [ ${HOSTNAME} == \"mini-gateway\" ] ; then","path":"kura/distrib/src/main/sh/extract.sh","position":137,"original_position":137,"commit_id":"015109a2925f0ed26d0a7cb452034c19adad7b21","original_commit_id":"015109a2925f0ed26d0a7cb452034c19adad7b21","user":{"login":"pierantoniomerlino","id":2919570,"avatar_url":"https://avatars0.githubusercontent.com/u/2919570?v=3","gravatar_id":"","url":"https://api.github.com/users/pierantoniomerlino","html_url":"https://github.com/pierantoniomerlino","followers_url":"https://api.github.com/users/pierantoniomerlino/followers","following_url":"https://api.github.com/users/pierantoniomerlino/following{/other_user}","gists_url":"https://api.github.com/users/pierantoniomerlino/gists{/gist_id}","starred_url":"https://api.github.com/users/pierantoniomerlino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierantoniomerlino/subscriptions","organizations_url":"https://api.github.com/users/pierantoniomerlino/orgs","repos_url":"https://api.github.com/users/pierantoniomerlino/repos","events_url":"https://api.github.com/users/pierantoniomerlino/events{/privacy}","received_events_url":"https://api.github.com/users/pierantoniomerlino/received_events","type":"User","site_admin":false},"body":"Of course, no.","created_at":"2017-03-30T13:11:47Z","updated_at":"2017-03-30T13:11:47Z","html_url":"https://github.com/eclipse/kura/pull/1273#discussion_r108921352","pull_request_url":"https://api.github.com/repos/eclipse/kura/pulls/1273","_links":{"self":{"href":"https://api.github.com/repos/eclipse/kura/pulls/comments/108921352"},"html":{"href":"https://github.com/eclipse/kura/pull/1273#discussion_r108921352"},"pull_request":{"href":"https://api.github.com/repos/eclipse/kura/pulls/1273"}}},"pull_request":{"url":"https://api.github.com/repos/eclipse/kura/pulls/1273","id":112992796,"html_url":"https://github.com/eclipse/kura/pull/1273","diff_url":"https://github.com/eclipse/kura/pull/1273.diff","patch_url":"https://github.com/eclipse/kura/pull/1273.patch","issue_url":"https://api.github.com/repos/eclipse/kura/issues/1273","number":1273,"state":"open","locked":false,"title":"Watchdog code refactor and improvements","user":{"login":"pierantoniomerlino","id":2919570,"avatar_url":"https://avatars0.githubusercontent.com/u/2919570?v=3","gravatar_id":"","url":"https://api.github.com/users/pierantoniomerlino","html_url":"https://github.com/pierantoniomerlino","followers_url":"https://api.github.com/users/pierantoniomerlino/followers","following_url":"https://api.github.com/users/pierantoniomerlino/following{/other_user}","gists_url":"https://api.github.com/users/pierantoniomerlino/gists{/gist_id}","starred_url":"https://api.github.com/users/pierantoniomerlino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierantoniomerlino/subscriptions","organizations_url":"https://api.github.com/users/pierantoniomerlino/orgs","repos_url":"https://api.github.com/users/pierantoniomerlino/repos","events_url":"https://api.github.com/users/pierantoniomerlino/events{/privacy}","received_events_url":"https://api.github.com/users/pierantoniomerlino/received_events","type":"User","site_admin":false},"body":"This PR replaces the #1082 that was closed for merge problems. The code and the installers/upgraders are improved according to @cdealti suggestions on the old PR.","created_at":"2017-03-28T15:02:52Z","updated_at":"2017-03-30T13:11:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2cf693de543bfb866d3e73d5e78604620409a86d","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/eclipse/kura/milestones/4","html_url":"https://github.com/eclipse/kura/milestone/4","labels_url":"https://api.github.com/repos/eclipse/kura/milestones/4/labels","id":1992871,"number":4,"title":"KURA-3.0.0","description":"","creator":{"login":"cdealti","id":1225835,"avatar_url":"https://avatars2.githubusercontent.com/u/1225835?v=3","gravatar_id":"","url":"https://api.github.com/users/cdealti","html_url":"https://github.com/cdealti","followers_url":"https://api.github.com/users/cdealti/followers","following_url":"https://api.github.com/users/cdealti/following{/other_user}","gists_url":"https://api.github.com/users/cdealti/gists{/gist_id}","starred_url":"https://api.github.com/users/cdealti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdealti/subscriptions","organizations_url":"https://api.github.com/users/cdealti/orgs","repos_url":"https://api.github.com/users/cdealti/repos","events_url":"https://api.github.com/users/cdealti/events{/privacy}","received_events_url":"https://api.github.com/users/cdealti/received_events","type":"User","site_admin":false},"open_issues":91,"closed_issues":133,"state":"open","created_at":"2016-09-09T08:31:39Z","updated_at":"2017-03-30T13:10:05Z","due_on":"2017-04-28T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/eclipse/kura/pulls/1273/commits","review_comments_url":"https://api.github.com/repos/eclipse/kura/pulls/1273/comments","review_comment_url":"https://api.github.com/repos/eclipse/kura/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eclipse/kura/issues/1273/comments","statuses_url":"https://api.github.com/repos/eclipse/kura/statuses/015109a2925f0ed26d0a7cb452034c19adad7b21","head":{"label":"eclipse:watchdog_refactor2","ref":"watchdog_refactor2","sha":"015109a2925f0ed26d0a7cb452034c19adad7b21","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars2.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":15237269,"name":"kura","full_name":"eclipse/kura","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars2.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/kura","description":"Eclipse Kura™ project - http://eclipse.org/kura","fork":false,"url":"https://api.github.com/repos/eclipse/kura","forks_url":"https://api.github.com/repos/eclipse/kura/forks","keys_url":"https://api.github.com/repos/eclipse/kura/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/kura/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/kura/teams","hooks_url":"https://api.github.com/repos/eclipse/kura/hooks","issue_events_url":"https://api.github.com/repos/eclipse/kura/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/kura/events","assignees_url":"https://api.github.com/repos/eclipse/kura/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/kura/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/kura/tags","blobs_url":"https://api.github.com/repos/eclipse/kura/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/kura/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/kura/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/kura/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/kura/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/kura/languages","stargazers_url":"https://api.github.com/repos/eclipse/kura/stargazers","contributors_url":"https://api.github.com/repos/eclipse/kura/contributors","subscribers_url":"https://api.github.com/repos/eclipse/kura/subscribers","subscription_url":"https://api.github.com/repos/eclipse/kura/subscription","commits_url":"https://api.github.com/repos/eclipse/kura/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/kura/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/kura/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/kura/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/kura/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/kura/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/kura/merges","archive_url":"https://api.github.com/repos/eclipse/kura/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/kura/downloads","issues_url":"https://api.github.com/repos/eclipse/kura/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/kura/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/kura/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/kura/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/kura/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/kura/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/kura/deployments","created_at":"2013-12-16T21:07:20Z","updated_at":"2017-03-28T08:51:53Z","pushed_at":"2017-03-30T13:10:51Z","git_url":"git://github.com/eclipse/kura.git","ssh_url":"git@github.com:eclipse/kura.git","clone_url":"https://github.com/eclipse/kura.git","svn_url":"https://github.com/eclipse/kura","homepage":"","size":106996,"stargazers_count":156,"watchers_count":156,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":120,"mirror_url":null,"open_issues_count":227,"forks":120,"open_issues":227,"watchers":156,"default_branch":"develop"}},"base":{"label":"eclipse:develop","ref":"develop","sha":"7ad28975684c651551cc052951022d815d6e95f7","user":{"login":"eclipse","id":56974,"avatar_url":"https://avatars2.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"repo":{"id":15237269,"name":"kura","full_name":"eclipse/kura","owner":{"login":"eclipse","id":56974,"avatar_url":"https://avatars2.githubusercontent.com/u/56974?v=3","gravatar_id":"","url":"https://api.github.com/users/eclipse","html_url":"https://github.com/eclipse","followers_url":"https://api.github.com/users/eclipse/followers","following_url":"https://api.github.com/users/eclipse/following{/other_user}","gists_url":"https://api.github.com/users/eclipse/gists{/gist_id}","starred_url":"https://api.github.com/users/eclipse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eclipse/subscriptions","organizations_url":"https://api.github.com/users/eclipse/orgs","repos_url":"https://api.github.com/users/eclipse/repos","events_url":"https://api.github.com/users/eclipse/events{/privacy}","received_events_url":"https://api.github.com/users/eclipse/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eclipse/kura","description":"Eclipse Kura™ project - http://eclipse.org/kura","fork":false,"url":"https://api.github.com/repos/eclipse/kura","forks_url":"https://api.github.com/repos/eclipse/kura/forks","keys_url":"https://api.github.com/repos/eclipse/kura/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eclipse/kura/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eclipse/kura/teams","hooks_url":"https://api.github.com/repos/eclipse/kura/hooks","issue_events_url":"https://api.github.com/repos/eclipse/kura/issues/events{/number}","events_url":"https://api.github.com/repos/eclipse/kura/events","assignees_url":"https://api.github.com/repos/eclipse/kura/assignees{/user}","branches_url":"https://api.github.com/repos/eclipse/kura/branches{/branch}","tags_url":"https://api.github.com/repos/eclipse/kura/tags","blobs_url":"https://api.github.com/repos/eclipse/kura/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eclipse/kura/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eclipse/kura/git/refs{/sha}","trees_url":"https://api.github.com/repos/eclipse/kura/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eclipse/kura/statuses/{sha}","languages_url":"https://api.github.com/repos/eclipse/kura/languages","stargazers_url":"https://api.github.com/repos/eclipse/kura/stargazers","contributors_url":"https://api.github.com/repos/eclipse/kura/contributors","subscribers_url":"https://api.github.com/repos/eclipse/kura/subscribers","subscription_url":"https://api.github.com/repos/eclipse/kura/subscription","commits_url":"https://api.github.com/repos/eclipse/kura/commits{/sha}","git_commits_url":"https://api.github.com/repos/eclipse/kura/git/commits{/sha}","comments_url":"https://api.github.com/repos/eclipse/kura/comments{/number}","issue_comment_url":"https://api.github.com/repos/eclipse/kura/issues/comments{/number}","contents_url":"https://api.github.com/repos/eclipse/kura/contents/{+path}","compare_url":"https://api.github.com/repos/eclipse/kura/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eclipse/kura/merges","archive_url":"https://api.github.com/repos/eclipse/kura/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eclipse/kura/downloads","issues_url":"https://api.github.com/repos/eclipse/kura/issues{/number}","pulls_url":"https://api.github.com/repos/eclipse/kura/pulls{/number}","milestones_url":"https://api.github.com/repos/eclipse/kura/milestones{/number}","notifications_url":"https://api.github.com/repos/eclipse/kura/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eclipse/kura/labels{/name}","releases_url":"https://api.github.com/repos/eclipse/kura/releases{/id}","deployments_url":"https://api.github.com/repos/eclipse/kura/deployments","created_at":"2013-12-16T21:07:20Z","updated_at":"2017-03-28T08:51:53Z","pushed_at":"2017-03-30T13:10:51Z","git_url":"git://github.com/eclipse/kura.git","ssh_url":"git@github.com:eclipse/kura.git","clone_url":"https://github.com/eclipse/kura.git","svn_url":"https://github.com/eclipse/kura","homepage":"","size":106996,"stargazers_count":156,"watchers_count":156,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":120,"mirror_url":null,"open_issues_count":227,"forks":120,"open_issues":227,"watchers":156,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eclipse/kura/pulls/1273"},"html":{"href":"https://github.com/eclipse/kura/pull/1273"},"issue":{"href":"https://api.github.com/repos/eclipse/kura/issues/1273"},"comments":{"href":"https://api.github.com/repos/eclipse/kura/issues/1273/comments"},"review_comments":{"href":"https://api.github.com/repos/eclipse/kura/pulls/1273/comments"},"review_comment":{"href":"https://api.github.com/repos/eclipse/kura/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eclipse/kura/pulls/1273/commits"},"statuses":{"href":"https://api.github.com/repos/eclipse/kura/statuses/015109a2925f0ed26d0a7cb452034c19adad7b21"}}}}
{"actor":{"display_login":"pierantoniomerlino"}}