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 () ...@@ -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 "\nDo you want to stop and disable this service?" 7 50 --yes-label "Stop" --no-label "Cancel" --yesno "\nDo 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
......
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