aboutsummaryrefslogtreecommitdiff
path: root/etc/guix-install.sh
Commit message (Collapse)AuthorAge
...
* guix-install.sh: Create /etc/profile.d if it does not existPrafulla Giri2020-01-26
| | | | | | | | | * etc/guix-install.sh (sys_create_init_profile): Add code to create /etc/profile.d if it somehow does not exist; the function still carries on because it is possible that /etc/profile is still configured to read the *.sh files from /etc/profile.d, if they exist. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* guix-install.sh: Export INFOPATH to contain updated guix info-pagesPrafulla Giri2020-01-26
| | | | | | | | | * etc/guix-install.sh (sys_create_init_profile): Export INFOPATH to include the updated info-pages from ~/.config/guix/current/share/info. This also makes sure that both /usr/bin/info and $GUIX_PROFILE/bin/info can read guix info pages without throwing "no menu item 'guix' in node dir(Top)" error. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* guix-install.sh: Create an init profile during installationPrafulla Giri2020-01-17
| | | | | | | | | | | | | | | | | Create an init profile (/etc/profile.d/guix.sh) during installation for better integration with foreign distros. This file, read by login-shells sets a few environment variables (PATH, GUIX_PROFILE, GUIX_LOCALE, along with XDG_DATA_DIRS) and makes guix-installed packages readily available for the users. Other environment variables, as listed by `guix package --search-paths=prefix`, are also exported. Checks are in place to prevent the init profile from needlessly polluting the user's environment. * etc/guix-install.sh (sys_create_init_profile): New function to create /etc/profile.d/guix.sh init profile. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* guix-install.sh: Use a deterministic umask.Tobias Geerinckx-Rice2019-12-04
| | | | | | | | | Users with strict umasks (e.g. 0077) would end up with an unreadable /gnu (mode 0700) and no way to run guix. Reported by A. <@aaap:matrix.org> on #guix. * etc/guix-install.sh (main): Set umask before installing anything.
* guix-install.sh: Work around locale issues in 'guix-daemon.service'.Ludovic Courtès2019-09-05
| | | | | * etc/guix-install.sh (sys_enable_guix_daemon): Modify 'guix-daemon.service' to work around locale issues not fixed in 1.0.1.
* guix-install.sh: Don't initialise ~/.gnupg.Tobias Geerinckx-Rice2019-07-08
| | | | * etc/guix-install.sh (chk_gpg_keyring): Call gpg with ‘--dry-run’.
* guix-install.sh: Check for PGP key separately.Tobias Geerinckx-Rice2019-07-08
| | | | | | * etc/guix-install.sh (chk_gpg_keyring): New function to handle the public key check previously stuffed into chk_require. (main): Call it.
* guix-install.sh: Add missing ‘local’ declaration.Tobias Geerinckx-Rice2019-07-08
| | | | * etc/guix-install.sh (chk_require): Make $c local.
* guix-install.sh: Treat REQUIRE as the array it is.Tobias Geerinckx-Rice2019-07-08
| | | | | | | | Don't flatten it into a string only to split it again later. * etc/guix-install.sh (chk_require): Iterate over array elements, not string tokens. (main): Pass $REQUIRE as an array of arguments.
* etc: Do not recommend use of SKS key servers.Ricardo Wurmus2019-07-01
| | | | * etc/guix-install.sh: Recommend downloading the GPG key from Savannah.
* guix-install.sh: Don't authorise hydra.gnu.org.Tobias Geerinckx-Rice2019-06-29
| | | | | * etc/guix-install.sh (sys_authorize_build_farms): Authorise only ci.guix.gnu.org and make all references to it singular.
* etc: Refer to ci.guix.gnu.org in install script.Ricardo Wurmus2019-05-10
| | | | * etc/guix-install.sh: Replace reference to ci.guix.info with ci.guix.gnu.org.
* guix-install.sh: Update URL.Ludovic Courtès2019-05-02
| | | | * etc/guix-install.sh (GNU_URL): Change to ftp.gnu.org.
* guix-install.sh: Avoid "#!/bin/bash" shebang.Ludovic Courtès2019-02-05
| | | | | | | | Fixes <https://bugs.gnu.org/34279>. Reported by Claes Wallin (韋嘉誠) <clacke@lysator.liu.se>. * etc/guix-install.sh: Change shebang to #!/bin/sh and add 'if' statement to spawn Bash if needed.
* guix-install.sh: Use pool.sks-keyservers.net.Ludovic Courtès2018-12-13
| | | | | | | "pgp.mit.edu" has been unavailable for some time. * etc/guix-install.sh (chk_require): Change key server to pool.sks-keyservers.net.
* guix-install.sh: Use the "ci.guix.info.pub" file name for clarity.Ludovic Courtès2018-12-05
| | | | | * etc/guix-install.sh (sys_authorize_build_farms): Use the "ci.guix.info.pub" file name rather "berlin.guixsd.org.pub".
* build: Binary tarball now populates the "current-guix" profile.Ludovic Courtès2018-11-23
| | | | | | | | | | | | * Makefile.am (guix-binary.%.tar.xz): Pass '--profile-name=current-guix'. Remove glibc and glibc-utf8-locales. * doc/guix.texi (Binary Installation): Update accordingly. * etc/guix-install.sh * etc/guix-install.sh (sys_create_store, sys_enable_guix_daemon) (sys_authorize_build_farms): Likewise. * etc/guix-publish.conf.in, etc/guix-publish.service.in, etc/guix-daemon.conf.in, etc/guix-daemon.service.in: Update file names accordingly.
* guix-install.sh: Recognize armhf-linux.Ludovic Courtès2018-10-14
| | | | * etc/guix-install.sh (chk_sys_arch): Add "armv7l" case.
* guix-install.sh: Fix chk_require exiting without warning.Maxim Cournoyer2018-05-19
| | | | | | | | | * etc/guix-install.sh (chk_require): Because of the set -e option, Bash was exiting when the command `command -v "$c" &>/dev/null' was running on its own. Instead, we now test the command and accumulate warning messages in a single statement by chaining the command with a logical OR. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* guix-install.sh: Explicitly set root's home directory.Chris Marusich2018-03-29
| | | | | | | | | | | * etc/guix-install.sh (ROOT_HOME): New variable. (sys_create_store, sys_enable_guix_daemon, sys_authorize_build_farms): Use ROOT_HOME instead of ~root or the HOME environment variable. * doc/guix.texi (Binary Installation): Instead of assuming that ~ and $HOME refer to root's directory simply because commands are being run as root, explicilty refer to it via ~root. Fixes: <https://bugs.gnu.org/30728>
* etc: guix-install.sh: Add aarch64-linux support.Efraim Flashner2018-02-21
| | | | * etc/guix-install.sh (chk_sys_arch): Add aarch64 case.
* etc: Add installation script.Ricardo Wurmus2018-01-30
* etc/guix-install.sh: New file. * Makefile.am (EXTRA_DIST): Add it. * doc/guix.texi (Binary Installation): Mention it. Co-authored-by: sharlatan <sharlatanus@gmail.com>