Skip to content

Conversation

HLeithner
Copy link

While having a hard time finding the features/functions of the script I thought it would be good to have them on the first page of the repo.

Feel free to change the text

Copy link
Owner

@whiskerz007 whiskerz007 left a comment

Choose a reason for hiding this comment

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

I can appreciate adding additional information to the README.

README.md Outdated
cd /config/scripts
curl -LO --silent https://github.com/whiskerz007/ubnt_get_wireguard/raw/master/get_wireguard.sh
chmod +x get_wireguard.sh
sudo curl -L --silent https://github.com/whiskerz007/ubnt_get_wireguard/raw/master/get_wireguard.sh -o /config/scripts/get_wireguard.sh && sudo chmod +x /config/scripts/get_wireguard.sh
Copy link
Owner

Choose a reason for hiding this comment

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

I'd prefer to keep the commands separate. Copy and paste works just as well with one or three lines of commands.

Copy link
Author

Choose a reason for hiding this comment

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

Changed it and add the you need to be root for installation

Copy link
Owner

Choose a reason for hiding this comment

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

Why does the user need to be set to root?

Copy link
Author

Choose a reason for hiding this comment

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

At least on my USG the config/scripts directory has write access for root only:
drwxr-xr-x 4 root vyattacf 4096 Feb 3 22:50 scripts

Copy link
Owner

Choose a reason for hiding this comment

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

I can verify that the Unifi gateways do set the permissions to root:vyattacfg. Go ahead and include the commands with sudo and I'll merge the PR.

USG needs root to download files to /config/scripts folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants