Commit 65ccf5e4 authored by Denis Bonnenfant's avatar Denis Bonnenfant
Browse files

prise en compte des paquets linux par les scripts application

parent c520b693
#!/bin/bash
version="4.7."
version="4.8."
SSH="ssh -p 2222 root@deb.sambaedu.org"
......
......@@ -8,6 +8,7 @@ install:
cp -R var/sambaedu/unattended/install/wpkg/* $(DESTDIR)/var/sambaedu/unattended/install/wpkg/
# Fichiers de l'interface web de wpkg
cp -R var/www/sambaedu/* $(DESTDIR)/var/www/sambaedu/
cp -R usr/share/sambaedu/applications/* $(DESTDIR)/usr/share/sambaedu/applications/
cp -R usr/share/doc/sambaedu-wpkg/* $(DESTDIR)/usr/share/doc/sambaedu-wpkg/
install -m 755 usr/share/sambaedu/scripts/* $(DESTDIR)/usr/share/sambaedu/scripts/
# tools GPL
......
sambaedu-wpkg (4.7.1) UNRELEASED; urgency=medium
sambaedu-wpkg (4.8.5) UNRELEASED; urgency=medium
[ Denis Bonnenfant ]
* Paquets stables
......@@ -7,8 +7,11 @@ sambaedu-wpkg (4.7.1) UNRELEASED; urgency=medium
* Nouvelle version stable
* Nouvelle version stable avec support Bullseye
* Nouvelle version stable avec support Bullseye
* Nouvelle version stable avec support DC secondaire
* Nouvelle version stable avec support DC secondaire
* Nouvelle version stable avec support DC secondaire
-- denis <denis@bureau> Sun, 12 Dec 2021 23:42:29 +0100
-- denis <denis@bureau> Thu, 03 Feb 2022 17:59:04 +0100
sambaedu-wpkg (4.0.0~beta69) UNRELEASED; urgency=medium
......
sambaedu-wpkg_4.7.1_all.deb net extra
sambaedu-wpkg_4.7.1_amd64.buildinfo net extra
sambaedu-wpkg_4.8.5_all.deb net extra
sambaedu-wpkg_4.8.5_amd64.buildinfo net extra
echo "Installation des logiciels via wpkg"
packages=$(dpkg-query -W --showformat '${binary:Package} ')
OLDIFS=$IFS
IFS=" "
for package in $(curl -s -F "id=$id" http://se4fs/wpkg/linux_out.php); do
echo $packages | grep -q "^${package}$" || DEBIAN_FRONTEND=noninteractive apt-get install -y $package || true
done
IFS=$OLDIFS
#
......@@ -12,28 +12,26 @@ $id = $_GET["id"] ?? $_POST["id"] ?? "";
if (empty($id)) {
exit();
}
$info = apcu_fetch("apps." . $id);
$liste_applications = $info['liste_applications'];
if ($info = apcu_fetch("apps." . $id)) {
$liste_applications = $info['liste_applications'];
$xml = new DOMDocument();
$xml->formatOutput = true;
$xml->preserveWhiteSpace = false;
$xml->load($url_packages);
$packages = $xml->documentElement->getElementsByTagName('package');
$xml = new DOMDocument();
$xml->formatOutput = true;
$xml->preserveWhiteSpace = false;
$xml->load($url_packages);
$packages = $xml->documentElement->getElementsByTagName('package');
$liste = [];
foreach ($packages as $package) {
if (is_int(array_search(strtolower($package->getAttribute('id')), $liste_applications))) {
$variables = $package->getElementsByTagName("linux");
foreach ($variables as $variable) {
$liste = [];
foreach ($packages as $package) {
if (is_int(array_search(strtolower($package->getAttribute('id')), $liste_applications))) {
$variables = $package->getElementsByTagName("linux");
foreach ($variables as $variable) {
if ($variable->getAttribute('type') == "apt") {
$liste[] = $variable->getAttribute('package');
$liste[] = $variable->getAttribute('package');
}
}
}
}
echo header('Content-type: text/plain');
echo implode(" ", $liste);
}
echo header('Content-type: text/plain');
echo implode(" ", $liste);
?>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment