{"action":"created","issue":{"url":"https://api.github.com/repos/totaljs/superadmin/issues/27","repository_url":"https://api.github.com/repos/totaljs/superadmin","labels_url":"https://api.github.com/repos/totaljs/superadmin/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/totaljs/superadmin/issues/27/comments","events_url":"https://api.github.com/repos/totaljs/superadmin/issues/27/events","html_url":"https://github.com/totaljs/superadmin/issues/27","id":265987403,"number":27,"title":"nginx: not found","user":{"login":"ozjd","id":204185,"avatar_url":"https://avatars1.githubusercontent.com/u/204185?v=4","gravatar_id":"","url":"https://api.github.com/users/ozjd","html_url":"https://github.com/ozjd","followers_url":"https://api.github.com/users/ozjd/followers","following_url":"https://api.github.com/users/ozjd/following{/other_user}","gists_url":"https://api.github.com/users/ozjd/gists{/gist_id}","starred_url":"https://api.github.com/users/ozjd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ozjd/subscriptions","organizations_url":"https://api.github.com/users/ozjd/orgs","repos_url":"https://api.github.com/users/ozjd/repos","events_url":"https://api.github.com/users/ozjd/events{/privacy}","received_events_url":"https://api.github.com/users/ozjd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-17T04:10:00Z","updated_at":"2017-10-17T05:19:43Z","closed_at":null,"author_association":"NONE","body":"Similar to (resolved) issue #24 - nginx is not found.\r\n\r\nSteps to reproduce:\r\n1. Install Ubuntu-Server (latest LTS).\r\n2. Use SuperAdmin install script\r\n- Everything now works -\r\n3. Reboot.\r\n- Now everything is broken -\r\n** Testing nginx will fail\r\n** Creating a new website will fail\r\n** etc.\r\n\r\nThe issue appears to be caused by the path for root having only been set to '**/usr/bin:/bin**' at the time of calling run.sh, when a `which nginx` shows it's located in '**/usr/sbin/nginx**'.\r\n\r\nFor now, I've prefixed line 3 in /www/superadmin/run.sh with `PATH=$PATH:/usr/sbin` which seems to solve the issue (rather than hardcoding the absolute path in ./definitions/superadmin.js  as @molda suggested). It would be preferable to use the result from `which nginx` for setting this path."},"comment":{"url":"https://api.github.com/repos/totaljs/superadmin/issues/comments/337120638","html_url":"https://github.com/totaljs/superadmin/issues/27#issuecomment-337120638","issue_url":"https://api.github.com/repos/totaljs/superadmin/issues/27","id":337120638,"user":{"login":"petersirka","id":2414252,"avatar_url":"https://avatars3.githubusercontent.com/u/2414252?v=4","gravatar_id":"","url":"https://api.github.com/users/petersirka","html_url":"https://github.com/petersirka","followers_url":"https://api.github.com/users/petersirka/followers","following_url":"https://api.github.com/users/petersirka/following{/other_user}","gists_url":"https://api.github.com/users/petersirka/gists{/gist_id}","starred_url":"https://api.github.com/users/petersirka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petersirka/subscriptions","organizations_url":"https://api.github.com/users/petersirka/orgs","repos_url":"https://api.github.com/users/petersirka/repos","events_url":"https://api.github.com/users/petersirka/events{/privacy}","received_events_url":"https://api.github.com/users/petersirka/received_events","type":"User","site_admin":false},"created_at":"2017-10-17T05:19:43Z","updated_at":"2017-10-17T05:19:43Z","author_association":"COLLABORATOR","body":"I'll fix it. __Premium SuperAdmin__ has this fix."}}
{"actor":{"display_login":"petersirka"}}