Changeset 8147


Ignore:
Timestamp:
Oct 1, 2018, 5:14:43 PM (15 months ago)
Author:
hectorgh
Message:

fixing warning dialog on semi clients

Location:
lliurex-shutdowner/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lliurex-shutdowner/trunk/fuentes/debian/changelog

    r7622 r8147  
     1lliurex-shutdowner (0.97) xenial; urgency=high
     2
     3  * Fixed semi clients dialog
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Mon, 01 Oct 2018 17:14:08 +0200
     6
    17lliurex-shutdowner (0.96) xenial; urgency=high
    28
  • lliurex-shutdowner/trunk/fuentes/lliurex-shutdowner-common.install/usr/sbin/shutdown-lliurex

    r7621 r8147  
    77is_server=os.system("lliurex-version -t server")
    88is_thin=os.system("lliurex-version -x thin")
     9is_semi=os.system("lliurex-version -x semi")
    910
    1011thinclient_cron_file="/etc/cron.d/lliurex-shutdowner-thinclients"
     
    2728if is_thin!=0:
    2829       
    29         if not os.path.exists(thinclient_cron_file):
     30        if not os.path.exists(thinclient_cron_file) and is_semi!=0:
    3031               
    3132                # thinclient_cron_file shouldn't exist on fat clients, it may be located on server, which means if it's not there
    3233                # server also needs to be shutdown, and if so, local users have to be notified
     34                # semi clients don't show tty information, thin_client logic is enough
    3335               
    3436                standalone=subprocess.Popen(["who | grep tty"],shell=True,stdout=subprocess.PIPE).communicate()[0]
     
    5456                        os.system(command)
    5557                       
    56         if is_server==0:
     58        if is_server==0 or is_semi==0:
    5759               
    5860                # whether thinclient_cron_file exists or not, server HAS to handle thinclients notifications
Note: See TracChangeset for help on using the changeset viewer.