Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linuxconf
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Recolic
linuxconf
Commits
9a4f1139
There was an error fetching the commit references. Please try again later.
Commit
9a4f1139
authored
2 months ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.
parent
4e591634
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
examples/archlinux-gnome/conf.d/basic.sh
+1
-0
1 addition, 0 deletions
examples/archlinux-gnome/conf.d/basic.sh
linuxconf
+3
-3
3 additions, 3 deletions
linuxconf
with
4 additions
and
3 deletions
examples/archlinux-gnome/conf.d/basic.sh
+
1
−
0
View file @
9a4f1139
...
...
@@ -29,6 +29,7 @@ lc_init () {
echo
'rtest ALL=(ALL) NOPASSWD: ALL'
|
EDITOR
=
'tee -a'
visudo
usermod
--password
$(
echo
testpass | openssl passwd
-1
-stdin
)
rtest
sudo
-u
rtest
realpath
masterconf.sh
||
!
echo
"ERROR: rtest do not have access to config dir."
||
exit
1
sudo
-u
rtest linuxconf register masterconf.sh
# more customization...
...
...
This diff is collapsed.
Click to expand it.
linuxconf
+
3
−
3
View file @
9a4f1139
...
...
@@ -25,14 +25,14 @@ function lc_include () {
# print the return code of the eval-ed function to stderr, but this function should always return success.
for
script
in
"
$@
"
;
do
[[
-f
"
$script
"
]]
||
err
"ERROR: DEBUG: script not exist >>
$script
<<"
||
continue
echo2
"
$script
--
$LCI_SUBSHELL_OP
started as
$(
whoami
)
, at
$(
pwd
)
"
(
source
"
$script
"
declare
-F
"
$LCI_SUBSHELL_OP
"
>
/dev/null 2>&1
||
exit
0
declare
-F
"
$LCI_SUBSHELL_OP
"
>
/dev/null 2>&1
||
exit
0
eval
"
$LCI_SUBSHELL_OP
"
)
echo2
"
$script
--
$LCI_SUBSHELL_OP
completed with status
$return_code
"
echo2
"
$script
--
$LCI_SUBSHELL_OP
completed with status
$?
"
# TODO: should I abort on failure? But for nested lc_include, I cannot know if it failed.
done
return
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