Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Context Sensitive Group
freedombone
Commits
88241a9a
Commit
88241a9a
authored
6 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Copy rust binaries so that they can be used by non-root users
parent
860498b7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/freedombone-app-plume
+5
-1
5 additions, 1 deletion
src/freedombone-app-plume
src/freedombone-utils-rust
+2
-4
2 additions, 4 deletions
src/freedombone-utils-rust
with
7 additions
and
5 deletions
src/freedombone-app-plume
+
5
−
1
View file @
88241a9a
...
...
@@ -278,6 +278,10 @@ function install_plume {
if
[
!
-f
/root/.cargo/bin/rustc
]
;
then
echo
"Unable to install rust"
fi
if
[
!
-f
/usr/local/bin/cargo
]
;
then
cp
/root/.cargo/bin/
*
/usr/local/bin/
fi
if
[
!
"
$PLUME_DOMAIN_NAME
"
]
;
then
echo
$'No domain name was given'
exit
3568356
...
...
@@ -385,7 +389,7 @@ function install_plume {
echo
'User=plume'
;
echo
'Group=plume'
;
echo
'WorkingDirectory=/etc/plume'
;
echo
'ExecStart=/usr/local/bin/
plume
'
;
echo
'ExecStart=/usr/local/bin/
cargo run
'
;
echo
'Environment=USER=plume'
;
echo
'Environment=FEATURES=postgres'
;
echo
'Restart=always'
;
...
...
This diff is collapsed.
Click to expand it.
src/freedombone-utils-rust
+
2
−
4
View file @
88241a9a
...
...
@@ -63,10 +63,8 @@ function install_rust {
chroot
"
$rootdir
"
"
$INSTALL_DIR
/rustup.sh"
-y
fi
if
!
grep
-q
'RUSTPATH='
~/.bashrc
;
then
echo
'export RUSTPATH=/root/.cargo/bin'
>>
~/.bashrc
echo
"export PATH=
\$
PATH:
\$
RUSTPATH"
>>
~/.bashrc
fi
# copy binaries so that they can be accessed by non-root users
cp
/root/.cargo/bin/
*
/usr/local/bin/
}
# NOTE: deliberately there is no "exit 0"
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