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
a609d7b5
Commit
a609d7b5
authored
7 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
Tidying
parent
3edcda63
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-utils-guile
+15
-21
15 additions, 21 deletions
src/freedombone-utils-guile
with
15 additions
and
21 deletions
src/freedombone-utils-guile
+
15
−
21
View file @
a609d7b5
...
...
@@ -125,6 +125,17 @@ function install_guix_get_architecture {
fi
}
function
install_guix_user
{
install_path
=
$1
if
!
grep
-q
'GUIX_LOCPATH'
$install_path
/.bashrc
;
then
echo
'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale'
>>
$install_path
/.bashrc
fi
if
!
grep
-q
'GUIX_PROFILE'
$install_path
/.bashrc
;
then
echo
'export GUIX_PROFILE=$HOME/.guix-profile'
>>
$install_path
/.bashrc
echo
'source $GUIX_PROFILE/etc/profile'
>>
$install_path
/.bashrc
fi
}
function
install_guix
{
if
[[
$(
app_is_installed install_guix
)
==
"1"
]]
;
then
...
...
@@ -199,27 +210,10 @@ function install_guix {
for
i
in
/var/guix/profiles/per-user/root/guix-profile/share/info/
*
;
do
ln
-s
$i
;
done
if
!
grep
-q
'GUIX_LOCPATH'
/root/.bashrc
;
then
echo
'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale'
>>
/root/.bashrc
fi
if
!
grep
-q
'GUIX_LOCPATH'
/etc/skel/.bashrc
;
then
echo
'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale'
>>
/etc/skel/.bashrc
fi
if
!
grep
-q
'GUIX_LOCPATH'
/home/
$MY_USERNAME
/.bashrc
;
then
echo
'export GUIX_LOCPATH=$HOME/.guix-profile/lib/locale'
>>
/home/
$MY_USERNAME
/.bashrc
fi
if
!
grep
-q
'GUIX_PROFILE'
/root/.bashrc
;
then
echo
'export GUIX_PROFILE=$HOME/.guix-profile'
>>
/root/.bashrc
echo
'source $GUIX_PROFILE/etc/profile'
>>
/root/.bashrc
fi
if
!
grep
-q
'GUIX_PROFILE'
/etc/skel/.bashrc
;
then
echo
'export GUIX_PROFILE=$HOME/.guix-profile'
>>
/etc/skel/.bashrc
echo
'source $GUIX_PROFILE/etc/profile'
>>
/etc/skel/.bashrc
fi
if
!
grep
-q
'GUIX_PROFILE'
/home/
$MY_USERNAME
/.bashrc
;
then
echo
'export GUIX_PROFILE=$HOME/.guix-profile'
>>
/home/
$MY_USERNAME
/.bashrc
echo
'source $GUIX_PROFILE/etc/profile'
>>
/home/
$MY_USERNAME
/.bashrc
fi
install_guix_user /root
install_guix_user /etc/skel
install_guix_user /home/
$MY_USERNAME
guix package
-i
glibc-locales
install_completed install_guix
...
...
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