Install ansible to arbitrary paths

This commit is contained in:
Anthony Rose 2022-07-18 10:30:01 +01:00
parent 5914fbffd7
commit 8e2307f586

View file

@ -14,7 +14,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
if [ x$1 -ne x ]; then
install_path=$1
if [ $(id -u) -eq 0 ]; then
bin_path=/usr/local/bin
else
bin_path="$HOME/.local/bin"
fi
elif [ $(id -u) -eq 0 ]; then
install_path=/opt/ansible
bin_path=/usr/local/bin
else