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
280b0e77
There was an error fetching the commit references. Please try again later.
Commit
280b0e77
authored
3 months ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.bugfix
parent
9f16be98
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
linuxconf
+1
-1
1 addition, 1 deletion
linuxconf
test.sh
+4
-2
4 additions, 2 deletions
test.sh
with
5 additions
and
3 deletions
linuxconf
+
1
−
1
View file @
280b0e77
...
...
@@ -261,7 +261,7 @@ elif [[ "$subcommand" = _startup ]]; then
elif
[[
"
$subcommand
"
=
_startup_all
]]
;
then
# systemd should call this service as root, and it will spawn subprocess for all users with sudo
[[
"
$(
whoami
)
"
!=
root
]]
&&
lcf_die
"
$0
_startup_all started as non-root. Exit because sudo might fail."
local
ar_uname
=(
$(
lci_state_file_list /etc/linuxconf.conf init_done
)
)
||
lcf_die
"List all initialized users: lci_state_file_list failed"
ar_uname
=(
$(
lci_state_file_list /etc/linuxconf.conf init_done
)
)
||
lcf_die
"List all initialized users: lci_state_file_list failed"
for
uname
in
"
${
ar_uname
[@]
}
"
;
do
lcf_echo2
"Spawn subprocess '
$0
_startup' as user
$uname
..."
sudo
-u
"
$uname
"
"
$0
"
_startup
...
...
This diff is collapsed.
Click to expand it.
test.sh
+
4
−
2
View file @
280b0e77
set
-e
tar
-cvzf
/tmp/test.tgz examples
netpush /tmp/test.tgz
netpush /tmp/test.tgz
linuxconf
echo
"
T
ODO:
T
EST >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
rm /mnt/fsdisk/svm/vm/archtest/ -r
pgkill archtest
...
...
@@ -13,4 +13,6 @@ sudo su
cd /
curl https://recolic.cc/tmp/test.tgz | tar xvzf -
cd examples/archlinux-gnome/
./linuxconf.wrapper register masterconf.sh
"
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