Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
fix: file ownership undre unix like OS
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Mar 6, 2016
1 parent 6a0fb4f commit 359740c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Hozz",
"version": "0.1.2",
"version": "0.1.3",
"description": "A better way to manage your hosts.",
"main": "browser.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/js/backend/permission.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ const enableFullAccess = () => {
command = path.join(global.__dirname, './assets/scripts/win32.bat');
break;
case 'darwin':
command = '/usr/sbin/chown `/usr/bin/whoami` /etc/hosts && /bin/chmod 644 /etc/hosts';
break;
case 'linux':
command = '/bin/chmod 644 /etc/hosts';
command = '/bin/chown `/usr/bin/whoami` /etc/hosts && /bin/chmod 644 /etc/hosts';
break;
default:
command = '';
Expand Down
2 changes: 1 addition & 1 deletion src/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require('path');
import keymirror from 'keymirror';

export const APP_NAME = 'Hozz';
export const APP_VERSION = '0.1.2';
export const APP_VERSION = '0.1.3';
export const APP_AUTHER = 'PPOffice';
export const APP_HOMEPAGE = 'https://ppoffice.github.io/Hozz';
export const APP_RELEASES_URL = `https://api.github.com/repos/ppoffice/${ APP_NAME }/releases`;
Expand Down

1 comment on commit 359740c

@ppoffice
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#9

Please sign in to comment.