{"action":"created","issue":{"url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/issues/4","repository_url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup","labels_url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/issues/4/comments","events_url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/issues/4/events","html_url":"https://github.com/BoQsc/ubuntu-custom-setup/issues/4","id":367873875,"node_id":"MDU6SXNzdWUzNjc4NzM4NzU=","number":4,"title":"Unable to launch Canonical Snaps application","user":{"login":"BoQsc","id":21064622,"node_id":"MDQ6VXNlcjIxMDY0NjIy","avatar_url":"https://avatars2.githubusercontent.com/u/21064622?v=4","gravatar_id":"","url":"https://api.github.com/users/BoQsc","html_url":"https://github.com/BoQsc","followers_url":"https://api.github.com/users/BoQsc/followers","following_url":"https://api.github.com/users/BoQsc/following{/other_user}","gists_url":"https://api.github.com/users/BoQsc/gists{/gist_id}","starred_url":"https://api.github.com/users/BoQsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoQsc/subscriptions","organizations_url":"https://api.github.com/users/BoQsc/orgs","repos_url":"https://api.github.com/users/BoQsc/repos","events_url":"https://api.github.com/users/BoQsc/events{/privacy}","received_events_url":"https://api.github.com/users/BoQsc/received_events","type":"User","site_admin":false},"labels":[{"id":1000828878,"node_id":"MDU6TGFiZWwxMDAwODI4ODc4","url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-08T16:52:54Z","updated_at":"2018-10-20T14:05:49Z","closed_at":null,"author_association":"OWNER","body":"https://bugs.launchpad.net/snappy/+bug/1796362"},"comment":{"url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/issues/comments/431584849","html_url":"https://github.com/BoQsc/ubuntu-custom-setup/issues/4#issuecomment-431584849","issue_url":"https://api.github.com/repos/BoQsc/ubuntu-custom-setup/issues/4","id":431584849,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTU4NDg0OQ==","user":{"login":"BoQsc","id":21064622,"node_id":"MDQ6VXNlcjIxMDY0NjIy","avatar_url":"https://avatars2.githubusercontent.com/u/21064622?v=4","gravatar_id":"","url":"https://api.github.com/users/BoQsc","html_url":"https://github.com/BoQsc","followers_url":"https://api.github.com/users/BoQsc/followers","following_url":"https://api.github.com/users/BoQsc/following{/other_user}","gists_url":"https://api.github.com/users/BoQsc/gists{/gist_id}","starred_url":"https://api.github.com/users/BoQsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoQsc/subscriptions","organizations_url":"https://api.github.com/users/BoQsc/orgs","repos_url":"https://api.github.com/users/BoQsc/repos","events_url":"https://api.github.com/users/BoQsc/events{/privacy}","received_events_url":"https://api.github.com/users/BoQsc/received_events","type":"User","site_admin":false},"created_at":"2018-10-20T14:05:49Z","updated_at":"2018-10-20T14:05:49Z","author_association":"OWNER","body":"```\r\n#!/bin/bash\r\n\r\n\r\nfunction checkIfAppArmorOptionExist() {\r\n\r\n  local occurrences=$(cat /mnt/boot/grub/grub.cfg | grep -c \"apparmor\");\r\n\r\n  if [ $occurrences -gt 0 ]; then\r\n      return 0;\r\n  else\r\n      return 1;\r\n  fi\r\n}\r\n\r\ncheckIfAppArmorOptionExist;\r\n  if [ $? -eq 0 ]\r\n  then\r\n    echo \"Successfully found some occurrences\"\r\n  else\r\n    echo \"Could not find any occurrences\" >&2\r\n\r\n    declare disk=$(lsblk -no pkname /dev/disk/by-label/casper-rw);\r\n\r\n    sudo mount /dev/${disk}3 /mnt\r\n    sudo sed -i \"s/=casper/=casper apparmor=0/\" \"/mnt/boot/grub/grub.cfg\"\r\n    sudo umount /dev/${disk}3 /mnt\r\n  fi\r\n\r\n\r\nexit\r\n\r\n```"}}
{"actor":{"display_login":"BoQsc"}}