From e34047457c706f201b3ca5a6f3c3c8dd1fa37534 Mon Sep 17 00:00:00 2001 From: Grzegorz Grasza Date: Tue, 4 Dec 2018 12:30:22 +0100 Subject: [PATCH] Install novajoin-ipa-setup script in /usr/libexec Since novajoin is branchless, we need to support older releases, which may call this script from the old location. Additional novajoin-ipa-setup script is installed in the old location for backward compatibility and calls the new "compiled" script in the default bin directory. Change-Id: I0a25ffb1f5fd3f8723bff8a1bcfc6dfc486b2b4a --- scripts/compat/novajoin-ipa-setup | 6 ++++++ setup.cfg | 1 + 2 files changed, 7 insertions(+) create mode 100755 scripts/compat/novajoin-ipa-setup diff --git a/scripts/compat/novajoin-ipa-setup b/scripts/compat/novajoin-ipa-setup new file mode 100755 index 0000000..36bc519 --- /dev/null +++ b/scripts/compat/novajoin-ipa-setup @@ -0,0 +1,6 @@ +#!/bin/sh + +# This script is installed in /usr/libexec for backward compatibility. +# It calls novajoin-ipa-setup from the default $PATH. + +novajoin-ipa-setup $@ diff --git a/setup.cfg b/setup.cfg index 62a7a6d..78556a2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -34,6 +34,7 @@ data_files = /etc/novajoin = files/join-api-paste.ini files/cloud-config-novajoin.json + /usr/libexec = scripts/compat/novajoin-ipa-setup /usr/share/man/man1 = man/novajoin-install.1 man/novajoin-notify.1