Install ansible to arbitrary paths
This commit is contained in:
parent
5914fbffd7
commit
8e2307f586
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue