diff options
| -rw-r--r-- | config-daemon.ac | 2 | ||||
| -rw-r--r-- | nix/libstore/local-store.cc | 5 | ||||
| -rw-r--r-- | nix/local.mk | 3 | ||||
| -rw-r--r-- | nix/scripts/authenticate.in | 11 |
4 files changed, 3 insertions, 18 deletions
diff --git a/config-daemon.ac b/config-daemon.ac index f1d26af3a7b..907457f4785 100644 --- a/config-daemon.ac +++ b/config-daemon.ac | |||
| @@ -152,8 +152,6 @@ if test "x$guix_build_daemon" = "xyes"; then | |||
| 152 | [chmod +x nix/scripts/download]) | 152 | [chmod +x nix/scripts/download]) |
| 153 | AC_CONFIG_FILES([nix/scripts/substitute], | 153 | AC_CONFIG_FILES([nix/scripts/substitute], |
| 154 | [chmod +x nix/scripts/substitute]) | 154 | [chmod +x nix/scripts/substitute]) |
| 155 | AC_CONFIG_FILES([nix/scripts/authenticate], | ||
| 156 | [chmod +x nix/scripts/authenticate]) | ||
| 157 | AC_CONFIG_FILES([nix/scripts/offload], | 155 | AC_CONFIG_FILES([nix/scripts/offload], |
| 158 | [chmod +x nix/scripts/offload]) | 156 | [chmod +x nix/scripts/offload]) |
| 159 | fi | 157 | fi |
diff --git a/nix/libstore/local-store.cc b/nix/libstore/local-store.cc index 892d9300b15..951c35faf3d 100644 --- a/nix/libstore/local-store.cc +++ b/nix/libstore/local-store.cc | |||
| @@ -1224,8 +1224,9 @@ static void checkSecrecy(const Path & path) | |||
| 1224 | 1224 | ||
| 1225 | static std::string runAuthenticationProgram(const Strings & args) | 1225 | static std::string runAuthenticationProgram(const Strings & args) |
| 1226 | { | 1226 | { |
| 1227 | return runProgram(settings.nixLibexecDir + "/authenticate", | 1227 | Strings fullArgs = { "authenticate" }; |
| 1228 | false, args); | 1228 | fullArgs.insert(fullArgs.end(), args.begin(), args.end()); // append |
| 1229 | return runProgram(settings.guixProgram, false, fullArgs); | ||
| 1229 | } | 1230 | } |
| 1230 | 1231 | ||
| 1231 | void LocalStore::exportPath(const Path & path, bool sign, | 1232 | void LocalStore::exportPath(const Path & path, bool sign, |
diff --git a/nix/local.mk b/nix/local.mk index fd7379b5ff7..cdcd9eb1c2e 100644 --- a/nix/local.mk +++ b/nix/local.mk | |||
| @@ -165,9 +165,6 @@ nodist_pkglibexec_SCRIPTS += \ | |||
| 165 | 165 | ||
| 166 | endif BUILD_DAEMON_OFFLOAD | 166 | endif BUILD_DAEMON_OFFLOAD |
| 167 | 167 | ||
| 168 | nodist_pkglibexec_SCRIPTS += \ | ||
| 169 | %D%/scripts/authenticate | ||
| 170 | |||
| 171 | # The '.service' files for systemd. | 168 | # The '.service' files for systemd. |
| 172 | systemdservicedir = $(libdir)/systemd/system | 169 | systemdservicedir = $(libdir)/systemd/system |
| 173 | nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-publish.service | 170 | nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-publish.service |
diff --git a/nix/scripts/authenticate.in b/nix/scripts/authenticate.in deleted file mode 100644 index 5ce57915f02..00000000000 --- a/nix/scripts/authenticate.in +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | #!@SHELL@ | ||
| 2 | # A shorthand for "guix authenticate", for use by the daemon. | ||
| 3 | |||
| 4 | if test "x$GUIX_UNINSTALLED" = "x" | ||
| 5 | then | ||
| 6 | prefix="@prefix@" | ||
| 7 | exec_prefix="@exec_prefix@" | ||
| 8 | exec "@bindir@/guix" authenticate "$@" | ||
| 9 | else | ||
| 10 | exec guix authenticate "$@" | ||
| 11 | fi | ||
