Update install.sh

This commit is contained in:
Santiago Lo Coco 2022-01-05 11:46:12 -03:00
parent 7835bc4748
commit f5fb0726f1
1 changed files with 3 additions and 3 deletions

View File

@ -454,8 +454,8 @@ getDotfiles() {
checkForSystemdUnit() { checkForSystemdUnit() {
trap 'systemctl stop ${2}' INT trap 'systemctl stop ${2}' INT
# systemctl is-active --quiet ${2} systemctl is-active --quiet ${2}
# [ $? -eq 0 ] && return [ $? -eq 0 ] && return
calcHeightAndRun "whiptail --infobox \"Waiting for the ${1} to finish.\" 7 WIDTH" calcHeightAndRun "whiptail --infobox \"Waiting for the ${1} to finish.\" 7 WIDTH"
systemctl is-active --quiet ${2} systemctl is-active --quiet ${2}
while [ $? -ne 0 ]; do while [ $? -ne 0 ]; do
@ -522,7 +522,7 @@ runScript() {
else else
systemctl stop reflector.service systemctl stop reflector.service
checkForSystemdUnit "systemd units" "graphical.target" checkForSystemdUnit "systemd units" "graphical.target"
systemctl start reflector.service systemctl start reflector.service &
welcomeMsg="Welcome to CocoASAIS!" welcomeMsg="Welcome to CocoASAIS!"
fi fi