mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
daemon: Run 'guix authenticate' directly.
* nix/scripts/authenticate.in: Remove. * nix/local.mk (nodist_pkglibexec_SCRIPTS): Remove scripts/authenticate. * config-daemon.ac: Don't output 'nix/scripts/authenticate'. * nix/libstore/local-store.cc (runAuthenticationProgram): Run 'guix authenticate'.
This commit is contained in:
parent
2e3e5d2198
commit
0c684b7edf
4 changed files with 3 additions and 18 deletions
|
@ -152,8 +152,6 @@ if test "x$guix_build_daemon" = "xyes"; then
|
|||
[chmod +x nix/scripts/download])
|
||||
AC_CONFIG_FILES([nix/scripts/substitute],
|
||||
[chmod +x nix/scripts/substitute])
|
||||
AC_CONFIG_FILES([nix/scripts/authenticate],
|
||||
[chmod +x nix/scripts/authenticate])
|
||||
AC_CONFIG_FILES([nix/scripts/offload],
|
||||
[chmod +x nix/scripts/offload])
|
||||
fi
|
||||
|
|
|
@ -1224,8 +1224,9 @@ static void checkSecrecy(const Path & path)
|
|||
|
||||
static std::string runAuthenticationProgram(const Strings & args)
|
||||
{
|
||||
return runProgram(settings.nixLibexecDir + "/authenticate",
|
||||
false, args);
|
||||
Strings fullArgs = { "authenticate" };
|
||||
fullArgs.insert(fullArgs.end(), args.begin(), args.end()); // append
|
||||
return runProgram(settings.guixProgram, false, fullArgs);
|
||||
}
|
||||
|
||||
void LocalStore::exportPath(const Path & path, bool sign,
|
||||
|
|
|
@ -165,9 +165,6 @@ nodist_pkglibexec_SCRIPTS += \
|
|||
|
||||
endif BUILD_DAEMON_OFFLOAD
|
||||
|
||||
nodist_pkglibexec_SCRIPTS += \
|
||||
%D%/scripts/authenticate
|
||||
|
||||
# The '.service' files for systemd.
|
||||
systemdservicedir = $(libdir)/systemd/system
|
||||
nodist_systemdservice_DATA = etc/guix-daemon.service etc/guix-publish.service
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
#!@SHELL@
|
||||
# A shorthand for "guix authenticate", for use by the daemon.
|
||||
|
||||
if test "x$GUIX_UNINSTALLED" = "x"
|
||||
then
|
||||
prefix="@prefix@"
|
||||
exec_prefix="@exec_prefix@"
|
||||
exec "@bindir@/guix" authenticate "$@"
|
||||
else
|
||||
exec guix authenticate "$@"
|
||||
fi
|
Loading…
Reference in a new issue