Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
9c737ccf
Unverified
Commit
9c737ccf
authored
Sep 22, 2018
by
Igor Pečovnik
Committed by
GitHub
Sep 22, 2018
Browse files
desktop disabling
was working only until reboot, now permanent.
parent
c3d79663
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
9c737ccf
...
@@ -787,8 +787,10 @@ function jobs ()
...
@@ -787,8 +787,10 @@ function jobs ()
dialog
--title
" Desktop is enabled and running "
--backtitle
"
$BACKTITLE
"
\
dialog
--title
" Desktop is enabled and running "
--backtitle
"
$BACKTITLE
"
\
--yes-label
"Stop"
--no-label
"Cancel"
--yesno
"
\n
Do you want to stop and disable this service?"
7 50
--yes-label
"Stop"
--no-label
"Cancel"
--yesno
"
\n
Do you want to stop and disable this service?"
7 50
exitstatus
=
$?
;
exitstatus
=
$?
;
[[
$exitstatus
=
0
]]
&&
service nodm stop
>
/dev/null 2>&1
&&
service lightdm stop
>
/dev/null 2>&1
&&
\
if
[[
$exitstatus
=
0
]]
;
then
sed
-i
"s/^NODM_ENABLED=.*/NODM_ENABLED=false/"
/etc/default/nodm
service nodm stop
>
/dev/null 2>&1
&&
sed
-i
"s/^NODM_ENABLED=.*/NODM_ENABLED=false/"
/etc/default/nodm
service lightdm stop
>
/dev/null 2>&1
&&
systemctl disable lightdm.service
>
/dev/null 2>&1
fi
else
else
if
!
is_package_manager_running
;
then
if
!
is_package_manager_running
;
then
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment