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
b0d18be2
Unverified
Commit
b0d18be2
authored
Jan 09, 2019
by
Igor Pečovnik
Committed by
GitHub
Jan 09, 2019
Browse files
Backward compatibility fixes
parent
6c79f66a
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
b0d18be2
...
@@ -915,9 +915,12 @@ function jobs ()
...
@@ -915,9 +915,12 @@ function jobs ()
exitstatus
=
$?
;
exitstatus
=
$?
;
if
[[
$exitstatus
=
0
]]
;
then
if
[[
$exitstatus
=
0
]]
;
then
service lightdm stop
>
/dev/null 2>&1
&&
systemctl disable lightdm.service
>
/dev/null 2>&1
service lightdm stop
>
/dev/null 2>&1
&&
systemctl disable lightdm.service
>
/dev/null 2>&1
service nodm stop
>
/dev/null 2>&1
&&
systemctl disable nodm.service
>
/dev/null 2>&1
fi
fi
else
else
if
!
is_package_manager_running
;
then
if
!
is_package_manager_running
;
then
# install lightdm = backward compatibility
[[
-z
$(
dpkg
-l
|
grep
lightdm
)
]]
&&
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confold"
-y
--no-install-recommends
install
lightdm-gtk-greeter lightdm
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
dialog
--title
" Display manager "
--backtitle
"
$BACKTITLE
"
--yesno
"
\n
Do you want to enable autologin?"
7 36
dialog
--title
" Display manager "
--backtitle
"
$BACKTITLE
"
--yesno
"
\n
Do you want to enable autologin?"
7 36
exitstatus
=
$?
;
exitstatus
=
$?
;
...
...
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