Skip to content

Commit

Permalink
Unpackaged binaries shouldn't go in /usr/bin
Browse files Browse the repository at this point in the history
The /usr prefix is for system packaged (rpm, deb, etc) files, not
manually installed ones.  Some systems (e.g. RHEL Atomic) have a
read-only /usr, so on those systems installing to /usr/bin won't
work at all.
  • Loading branch information
nbartos committed Sep 22, 2017
1 parent 4fe5cf3 commit 079b2c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions install/k8s/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,11 @@ echo "Applying contiv installation"
grep -q -F "netmaster" /etc/hosts || echo "$netmaster netmaster" >>/etc/hosts
echo "To customize the installation press Ctrl+C and edit $contiv_yaml."
sleep 5
chmod +x ./netctl

# Previous location was in /usr/bin/, so delete it in the case of an upgrade.
rm -f /usr/bin/netctl
cp ./netctl /usr/bin/
install -m 755 -o root -g root ./netctl /usr/local/bin/netctl

# Install Contiv
$kubectl apply -f $contiv_yaml

Expand Down

0 comments on commit 079b2c4

Please sign in to comment.