Unverified Commit 9c737ccf authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

desktop disabling

was working only until reboot, now permanent.
parent c3d79663
......@@ -787,8 +787,10 @@ function jobs ()
dialog --title " Desktop is enabled and running " --backtitle "$BACKTITLE" \
--yes-label "Stop" --no-label "Cancel" --yesno "\nDo you want to stop and disable this service?" 7 50
exitstatus=$?;
[[ $exitstatus = 0 ]] && service nodm stop >/dev/null 2>&1 && service lightdm stop >/dev/null 2>&1 && \
sed -i "s/^NODM_ENABLED=.*/NODM_ENABLED=false/" /etc/default/nodm
if [[ $exitstatus = 0 ]]; then
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
if ! is_package_manager_running; then
if [[ -n $DESKTOP_INSTALLED ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment