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
c64c9602
There was an error fetching the commit references. Please try again later.
Commit
c64c9602
authored
1 month ago
by
Recolic
Browse files
Options
Downloads
Patches
Plain Diff
.note
parent
fb5687d4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
linuxconf
+5
-1
5 additions, 1 deletion
linuxconf
with
5 additions
and
1 deletion
linuxconf
+
5
−
1
View file @
c64c9602
...
@@ -179,7 +179,8 @@ elif [[ "$subcommand" = _cron ]]; then
...
@@ -179,7 +179,8 @@ elif [[ "$subcommand" = _cron ]]; then
# TODO: implement cron. with crontab or same systemd service?
# TODO: implement cron. with crontab or same systemd service?
:
:
elif
[[
"
$subcommand
"
=
_startup
]]
;
then
elif
[[
"
$subcommand
"
=
_startup
]]
;
then
lci_startup_if_needed
lci_startup_if_needed
# TODO: no need to check "if needed"
# TODO: for current user, check if desktop environment 'autostart' dir exists. If so, update autostart/linuxsync_on_login.desktop
elif
[[
"
$subcommand
"
=
_startup_all
]]
;
then
elif
[[
"
$subcommand
"
=
_startup_all
]]
;
then
# systemd should call this service as root, and it will spawn subprocess for all users with sudo
# systemd should call this service as root, and it will spawn subprocess for all users with sudo
[[
"
$(
whoami
)
"
!=
root
]]
&&
die
"
$0
_startup_all started as non-root. Exit because sudo might fail."
[[
"
$(
whoami
)
"
!=
root
]]
&&
die
"
$0
_startup_all started as non-root. Exit because sudo might fail."
...
@@ -188,6 +189,9 @@ elif [[ "$subcommand" = _startup_all ]]; then
...
@@ -188,6 +189,9 @@ elif [[ "$subcommand" = _startup_all ]]; then
echo2
"Spawn subprocess '
$0
_startup' as user
$uname
..."
echo2
"Spawn subprocess '
$0
_startup' as user
$uname
..."
sudo
-u
"
$uname
"
"
$0
"
_startup
sudo
-u
"
$uname
"
"
$0
"
_startup
done
done
elif
[[
"
$subcommand
"
=
_de_login
]]
;
then
# TODO: call lc_login. no need to check "if needed"
:
else
else
lci_usage
lci_usage
exit
exit
...
...
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