tis-schedule-shutdown-daily icon

Schedule Daily Shutdown

Silent install package for Schedule Daily Shutdown

1.1-3
System and network
System and network

  • package: tis-schedule-shutdown-daily
  • name: Schedule Daily Shutdown
  • version: 1.1-3
  • categories: System and network
  • maintainer: WAPT Team,Tranquil IT,Jimmy PELÉ,Kenan KILICARSLAN
  • target_os: windows
  • architecture: all
  • signature_date:
  • size: 3.77 Ko

package           : tis-schedule-shutdown-daily
version           : 1.1-3
architecture      : all
section           : base
priority          : optional
name              : Schedule Daily Shutdown
categories        : System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ,Kenan KILICARSLAN
description       : Trigger a shutdown everyday
depends           : 
conflicts         : 
maturity          : PROD
locale            : 
target_os         : windows
min_os_version    : 
max_os_version    : 
min_wapt_version  : 1.7
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : Lance un arrêt du poste tous les jours
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : 
keywords          : 
licence           : 
homepage          : 
package_uuid      : 79989742-52d0-4c60-9689-f7f9b93012a0
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature         : dB4fpKZv5nn8zkKtCc0Ndg4xsg79cg7GuKa9CvF8Nv9YUZT2imDii0moCexJUMxyQpGq3S7iJYWDc7Isub5lUTTlh/o58Fz+M2PprNQVqpd3z6B4enOP8wN5//mlHNu7KvWbEE5vEf+vfbraptf5Ql1GE5dDwXmVUON80FHnXM613R17gJP/gexhgiuWrqLKok8SVe5XxTMK99ZWZ13A99D0Fb0Uj03FMeudDsq6IMoQg0YraQXpzoT5s1JF+gW2i7VA+wXpt8hhrClTnKOEUlPZlufVBnrpanigkGciKiU9V5vo2+8rE65NPGNSYVTZcwYC71oJhV7ixOIR9wZ+aQ==
signature_date    : 2020-11-19T11:54:00.916468
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_os_version,max_os_version,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,signer,signer_fingerprint,signature_date,signed_attributes

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

# Defining variables
task_name = 'ShutdownDaily'
start_hour = 19
start_minute = 00


def install():
    # Creating the scheduled task
    if task_exists(task_name):
        delete_task(task_name)
    try:
        print('Creating the task: %s' % task_name)
        create_daily_task(task_name, 'shutdown','/s /t 300', start_hour=start_hour, start_minute=start_minute)
    except:
        print('Unable to create the task: %s' % task_name)


def uninstall():
    # Deleting the scheduled task
    if task_exists(task_name):
        try:
            delete_task(task_name)
        except:
            print('Unable to delete the task: %s' % task_name)


def audit():
    if not task_exists(task_name):
        print("task %s don't exist, WAPT is installing package to fix that" % task_name)
        install()
        return "WARNING"
    if not enable_task(task_name):
        print("task %s is disable, WAPT is going to enable the task" % task_name)
        enable_task(task_name)
        return "WARNING"
    else:
        print("task %s exist and is active" % task_name)
        return "OK"


def update_package():
    # Initializing variables
    version = control.version.split('-')[0]

    # Incrementing version of the package
    control.version = '%s-%s'%(version,int(control.version.split('-')[-1])+1)
    control.save_control_to_wapt()
    print('Changing package version to: %s in WAPT\\control' % control.version)

85c4c2b7036b7beee08fb9bdfb8c73de6d5b0bef72d7f792ec92feec5e80126e : setup.py
a5a97261381e1d0ad46ee15916abec9c2631d0201f5cc50ceb0197a165a0bbbf : WAPT/certificate.crt
0986fae8f81b32b04b0d3f42a548d5cbd893731afdfb49075fb0f71e4d684df4 : WAPT/control