Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integrate two install scripts further, into oneliner #1818

Closed
Anton-Latukha opened this issue Feb 19, 2017 · 4 comments
Closed

integrate two install scripts further, into oneliner #1818

Anton-Latukha opened this issue Feb 19, 2017 · 4 comments

Comments

@Anton-Latukha
Copy link

Anton-Latukha commented Feb 19, 2017

I see how far you got in this scripts.
I don't see why don't combine preparation script with installation one, in truly oneliner.
They are separated by just git clone.

Keys, explanation, can be combined.

git clone --depth 1 "$url" "$repo_path" # can be done in temp folder even as root or user
# if be dirty, can do right away `chmod -R 0300 "$repo_path"` if we being paranoid, if installer caw work in that
"$repo_path"/netdata-installer.sh
rm -rf "$repo_path" # does user really need a code repository after installation?

Thank you.

P.S. - You got a really ultimate product. Just look back several years ago...

@ktsaou
Copy link
Member

ktsaou commented Feb 19, 2017

Hi,

thanks! We are working on a static netdata build that will be installed with https://github.com/megastep/makeself Check this: firehol/packages#1

Usually, the right way to do it:

  1. Run the kickstart script once
  2. git clone the source into /usr/src/netdata.git
  3. install it from there with the installer
  4. link netdata-updater.sh from the source directory to your /etc/cron.daily/ to make it update netdata automatically - the installer suggests this when it finishes.

The installer fully supports non-root setups. Check #149 . You will need of course to either setcap or setuid to root apps.plugin. So, the change you made at the installation wiki page is not exactly accurate. When you run the installer as a normal user is does not allow installing at system paths, but on any other folder it will be installed and run if you do not have root access.

For non-root users though, I suggest to keep the source in $HOME/src.

@Anton-Latukha
Copy link
Author

Jesus, I saw https://github.com/megastep/makeself

Things like that are needed.

P.S.
<small talk>
I am myself thinking how to properly #! cross-platform installation script for Leksah including MSYS2 and Mac OS envs (Leksah is IDE for Haskell written in Haskell). Complexity to install it properly, was his main weaknesses that downed it's usage completely now. So I like to see shell standardization in universal functions/snippets/solutions.

@Anton-Latukha Anton-Latukha changed the title integrate two install scripts further, into true oneliner integrate two install scripts further, into oneliner Feb 19, 2017
@ktsaou
Copy link
Member

ktsaou commented May 26, 2017

Binary packages with makeself are here: https://github.com/firehol/binary-packages

Also, your kickstart suggestion is here:

bash <(curl -Ss https://my-netdata.io/kickstart.sh)

@ktsaou
Copy link
Member

ktsaou commented Jun 9, 2017

This is done. I am closing it.

@ktsaou ktsaou closed this as completed Jun 9, 2017
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

No branches or pull requests

2 participants