I've been using WAPT for a short time, mainly on Windows machines using Tranquil It packages, no custom packages.
I'm trying to create a package to automatically update Debian machines. So, something very simple: `apt update` followed by `apt upgrade -y`
So I installed the agent etc. and produced the following very simple code:
Code: Select all
# -*- coding: utf-8 -*-
from setuphelpers import *
def install():
print("Installation de : %s" % control.package)
# Exécute apt update
print("Exécution de apt update...")
run('apt', 'update')
# Exécute apt upgrade
print("Exécution de apt upgrade...")
run('apt', 'upgrade', '-y')
def uninstall():
print("Désinstallation de : %s" % control.package)
I don't even know if my code is correct and I can't find a chapter in the WAPT 2.4 documentation for creating packages for Linux.
And then I put this package in my repository and I can't deploy it on my Debian machine.
I push it into the "dependencies" section on my Linux machine, just as I would with a package on a Windows machine
I'm missing some prerequisites, my code is incorrect?
I don't think I have any certificate or signature issues since my wapt-get.ini file looks like this:
Code: Select all
[global]
repo_url = https://serveurwapt.mondomain.xd/wapt
wapt_server = https://serveurwapt.mondomaine.xd
use_hostpackages = True
use_kerberos = False
verify_cert = False
I don't know if you would know where my problem lies?
Thank you in advance!
