Use sudo to add bin symlink in rpm

Fixes #6338
This commit is contained in:
Daniel Imms 2016-05-13 15:12:17 -07:00
parent c2c7bbd7ae
commit 179fd83998

View file

@ -28,9 +28,9 @@ if [ "@@NAME@@" = "code" ]; then
rm -f /usr/local/bin/code
fi
# Symlink bin command to /usr/bin2
# Symlink bin command to /usr/bin
rm -f /usr/bin/@@NAME@@
ln -s /usr/share/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@
sudo ln -s /usr/share/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@
# Register yum repository
# TODO: #229: Enable once the yum repository is signed