Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
wolf_scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_scripts
Commits
0b772d8f
Commit
0b772d8f
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
ldconfig with sudo
parent
49f3ba45
No related branches found
No related tags found
No related merge requests found
Pipeline
#8658
failed
3 years ago
Stage: install
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install_wolf.sh
+13
-3
13 additions, 3 deletions
install_wolf.sh
with
13 additions
and
3 deletions
install_wolf.sh
+
13
−
3
View file @
0b772d8f
...
...
@@ -10,6 +10,14 @@ func_make_install () {
fi
}
func_ldconfig
()
{
if
[
"
$UID
"
-eq
0
-o
"
$EUID
"
-eq
0
]
;
then
ldconfig
else
sudo
ldconfig
fi
}
func_echo
()
{
if
[
$VERBOSE
==
"true"
]
;
then
echo
"
$1
"
...
...
@@ -140,6 +148,8 @@ while getopts "vap:d:w:hf:c:" opt; do
esac
done
# check sudo permissions
func_ldconfig
# UBUNTU
if
[
"
$UID
"
-eq
0
-o
"
$EUID
"
-eq
0
]
;
then
...
...
@@ -354,7 +364,7 @@ if [ $INSTALL_LASER == "y" ]; then
# LASER_SCAN_UTILS
func_echo
"Installing laser_scan_utils (required)..."
cd
$DEPS_PATH
ldconfig
func_
ldconfig
git clone https://gitlab.iri.upc.edu/labrobotica/algorithms/laser_scan_utils.git
cd
laser_scan_utils
mkdir
-p
build
&&
cd
build
...
...
@@ -366,7 +376,7 @@ if [ $INSTALL_LASER == "y" ]; then
# PLUGIN
func_echo
"Cloning plugin laser..."
cd
$WOLF_PATH
ldconfig
func_
ldconfig
git clone
-b
master https://gitlab.iri.upc.edu/mobile_robotics/wolf_projects/wolf_lib/plugins/laser.git
cd
laser
...
...
@@ -379,7 +389,7 @@ if [ $INSTALL_LASER == "y" ]; then
func_make_install
func_echo
"Testing plugin laser..."
ldconfig
func_
ldconfig
ctest
-j
$CORES
else
func_echo
"Skipping plugin laser."
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment