[Wapt] Fwd: Correction setuphelpers_linux.py sur la prochaine update

Jordi Morillo j.morillo at yeswehack.com
Jeu 7 Avr 09:05:06 CEST 2022


Mille merci Hubert ! :)

Excellente journée !

Jordi

ps: j'ai vu passer du mORMot dans les derniers changelog, depuis le 
temps que tu en parlais/révais ;)

Le 06/04/2022 à 17:21, Hubert TOUVET via WAPT a écrit :
> Revision: b7d7f0e6da8455761341abc201d5cbfb9dee26a7
> Author: htouvet <htouvet at None>
> Date: 06/04/2022 17:11:05
> Message:
> add running_on_ac for linux and mac
>
> ----
> Modified: setuphelpers.py
> Modified: setuphelpers_linux.py
> Modified: setuphelpers_macos.py
>
>
> :)
>
>
>
> Le 06/04/2022 à 16:32, Jordi Morillo via WAPT a écrit :
>>
>> Hello à tous !
>>
>> Ha ! je suis triste :)
>>
>> J’espérais que le correctif ci-dessus soit intégré dans la 
>> 2.2.1.11899 qui vient de sortir.
>> Bon, ça sera pour une prochaine alors ;)
>>
>> Bonne fin de semaine à tous !
>>
>>
>>
>> -------- Message transféré --------
>> Sujet : 	[Wapt] Correction setuphelpers_linux.py sur la prochaine update
>> Date : 	Fri, 18 Mar 2022 16:53:44 +0100
>> De : 	Jordi Morillo via WAPT <wapt at lists.wapt.fr>
>> Répondre à : 	wapt at lists.wapt.fr
>> Pour : 	wapt at lists.wapt.fr
>> Copie à : 	Jordi Morillo <j.morillo at yeswehack.com>
>>
>>
>>
>> Encore moi :)
>>
>> Pourriez-vous ajouter le pti "patch" de Denis dans 
>> setuphelpers_linux.py lors de la prochaine MAJ du Linux agent svp ? :)
>>
>> /def running_on_ac()/
>> /    return False/
>>
>> J'essai actuellement d'upgrade tous mes agents en 2.2 avec le package 
>> suivant:
>>
>> //
>>
>> /# -*- coding: utf-8 -*- from setuphelpers import * def install(): if 
>> type_debian(): install_apt('lsb-release') run('echo "deb [arch=amd64] 
>> https://wapt.tranquil.it/%s/wapt-2.2/ $(lsb_release -c -s) main" > 
>> /etc/apt/sources.list.d/wapt.list' % get_distrib_linux().lower()) 
>> inifile_writestring(WAPT.config_filename, 'global', 
>> 'waptservice_admin_filter', 'True') 
>> inifile_writestring(WAPT.config_filename, 'global', 
>> 'service_auth_type', 'waptserver-ldap') 
>> inifile_writestring(WAPT.config_filename, 'global', 
>> 'waptaudit_task_period', '1h') 
>> inifile_writestring(WAPT.config_filename, 'global', 
>> 'allow_remote_reboot', 1) inifile_writestring(WAPT.config_filename, 
>> 'global', 'allow_remote_shutdown', 1) update_apt() run('apt install 
>> -y --only-upgrade tis-waptagent') 
>> filecopyto('setuphelpers_linux.py','/opt/wapt/setuphelpers_linux.py') /
>> //
>>
>> Sauf qu'au moment de l'upgrade de tis-waptagentt, il y a un restart 
>> du service qui est effectué, du coup je ne passe pas à filecopyto...
>> Je pourrais bien faire des bidouille genre je copie le fichier dans 
>> /tmp et je joue avec la commande "at" mais ça commence a faire 
>> vraiment de la bidouille très crade...
>>
>> Merci d'avance et bon week-end !
>>
>> //
>>
>>
>>
>>
>>
>> _______________________________________________
>> WAPT mailing list
>> WAPT at lists.wapt.fr
>> http://lists.wapt.fr/listinfo/wapt
>
> -- 
> Hubert TOUVET
> Tranquil IT
>
> _______________________________________________
> WAPT mailing list
> WAPT at lists.wapt.fr
> http://lists.wapt.fr/listinfo/wapt
-- 
https://www.yeswehack.com/wp-content/uploads/2020/12/PICTO-red.png 
<https://www.yeswehack.com> 	
*Jordi MORILLO*
System and Network Administrator

	
https://www.yeswehack.com/wp-content/uploads/2019/05/YWH-white-sans-cartouche.png 
<https://www.yeswehack.com>

	
#1 European Bug Bounty & VDP Platform**


-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <http://lists.wapt.fr/pipermail/wapt/attachments/20220407/fc4d05dc/attachment.htm>


Plus d'informations sur la liste de diffusion WAPT