]> gitweb.morketsmerke.org Git - e5270.git/commitdiff
Zamiana immudex-updates w zwykłe narzędzie.
authorxf0r3m <jakubstasinski@protonmail.com>
Sun, 25 May 2025 11:23:41 +0000 (13:23 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sun, 25 May 2025 11:23:41 +0000 (13:23 +0200)
immudex-motd2
immudex-updates
immudex-updates-wlog [deleted file]
immudex-updates.desktop [deleted file]

index ac5936c8c323130ae13fa8dbb18cbe615a58f30e..b4b720b406d7661f963f92993eba5a7a35b1962a 100755 (executable)
@@ -45,6 +45,5 @@ fi
 echo -e " \t$(uptime | grep -o "load.*$" | tr '[a-z]' '[A-Z]')";
 echo;
 echo -e "morketsmerke.org @ 2025 https://github.com/xf0r3m/immudex";
-cat /tmp/immudex-updates.txt;
 echo;
 echo "====================================================================";
index 9c6c7467007009b8c60ef7de0f2ff5457f0f4820..42e92ebd4e519cf9bd4ea7d3df4ce6d551e78b83 100755 (executable)
@@ -5,21 +5,21 @@ GREEN="\e[32m";
 YELLOW="\e[33m";
 ENDCOLOR="\e[0m";
 
-FILE="/tmp/immudex-updates.txt";
+#FILE="/tmp/immudex-updates.txt";
 
 function getVerFromRSSFeed() {
   URL=$1;
   echo $(curl $URL 2> /dev/null | grep '<title>' | sed -n '2p' | sed -e 's/<title>//g' -e 's,</title>,,g' | awk '{printf $1}')
 }
-echo "Obtaining updates information:" > $FILE;
-echo "  |" >> $FILE ;
+echo "Obtaining updates information:";
+echo "  |";
 if [ -x /usr/bin/librewolf ]; then
   URL="https://codeberg.org/librewolf/source/releases.rss";
   newLibrewolfVer=$(getVerFromRSSFeed $URL);
   currentLibrewolfVer=$(apt list --installed 2>/dev/null | grep 'librewolf' | awk '{printf $2}');
   if ! [ "$currentLibrewolfVer" = "$newLibrewolfVer" ]; then
-    echo -e "  \`- New Librewolf version (${GREEN}${newLibrewolfVer}${ENDCOLOR}) is available." >> $FILE;
-    echo "  |" >> $FILE;
+    echo -e "  \`- New Librewolf version (${GREEN}${newLibrewolfVer}${ENDCOLOR}) is available.";
+    echo "  |";
   fi
 fi
 
@@ -28,8 +28,8 @@ if [ -x /usr/local/bin/ncspot ]; then
   newNcspotVer=$(getVerFromRSSFeed $URL);
   currentNcspotVer=$(ncspot -V | awk '{printf $2}');
   if ! [ "$currentNcspotVer" = "$newNcspotVer" ]; then
-    echo -e "  \`- New ncspot version (${GREEN}${newNcspotVer}${ENDCOLOR}) is available." >> $FILE;
-    echo "  |" >> $FILE;
+    echo -e "  \`- New ncspot version (${GREEN}${newNcspotVer}${ENDCOLOR}) is available.";
+    echo "  |";
   fi
 fi
 
@@ -38,8 +38,8 @@ if [ -x /usr/local/bin/nu ]; then
   newNushellVer=$(getVerFromRSSFeed $URL);
   currentNushellVer=$(nu -v | awk '{printf $1}');
   if ! [ "$currentNushellVer" = "$NewNushellVer" ]; then
-    echo -e "  \`- New nushell version (${GREEN}${newNushellVer}${ENDCOLOR}) is available." >> $FILE;
-    echo "  |" >> $FILE;
+    echo -e "  \`- New nushell version (${GREEN}${newNushellVer}${ENDCOLOR}) is available.";
+    echo "  |";
   fi
 fi
 
@@ -48,8 +48,8 @@ if [ -x /usr/local/bin/nextcloud ]; then
   URL="https://github.com/nextcloud-releases/desktop/releases.atom";
   newNextcloudVersion=$(curl $URL 2> /dev/null | grep -o '<title>.*</title>' | grep -v 'rc' | sed -n '2p' | sed -e 's,<title>,,' -e 's,</title>,,' | awk '{printf $2}');
   if ! [ "$currentNextcloudVersion" = "$newNextcloudVersion" ]; then
-    echo -e "  \`- New Nextcloud version (${GREEN}${newNextcloudVersion}${ENDCOLOR}) is available." >> $FILE;
-    echo "  |" >> $FILE;
+    echo -e "  \`- New Nextcloud version (${GREEN}${newNextcloudVersion}${ENDCOLOR}) is available.";
+    echo "  |";
   fi
 fi
 
@@ -57,8 +57,8 @@ debianVersion=$(cut -d "." -f 1 /etc/debian_version);
 URL="https://micronews.debian.org/feeds/feed.rss";
 newDebianVersion=$(curl $URL 2>/dev/null | grep -o "Updated Debian ${debianVersion}: ${debianVersion}.[0-9]*" | sed -n '1p' | awk '{printf $4}');
 if ! [ "$newDebianVersion" = "$(cat /etc/debian_version)" ]; then
-  echo -e "  \`- New Debian version (${YELLOW}${newDebianVersion}${ENDCOLOR})." >> $FILE;
-  echo "  |" >> $FILE;
+  echo -e "  \`- New Debian version (${YELLOW}${newDebianVersion}${ENDCOLOR}).";
+  echo "  |";
 fi
 
 apt update > /dev/null 2>&1;
@@ -70,4 +70,4 @@ elif [ $packagesToUpdate -lt 50 ]; then color=${YELLOW};
 else color=${RED};
 fi
 
-echo -e "  \`- ${color}${packagesToUpdate}${ENDCOLOR} packages ready to update." >> $FILE
+echo -e "  \`- ${color}${packagesToUpdate}${ENDCOLOR} packages ready to update."; 
diff --git a/immudex-updates-wlog b/immudex-updates-wlog
deleted file mode 100755 (executable)
index 8ab6d78..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-bash -x /usr/local/sbin/immudex-updates > /tmp/immudex-updates.log 2>&1;
diff --git a/immudex-updates.desktop b/immudex-updates.desktop
deleted file mode 100644 (file)
index e88ca0b..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-[Desktop Entry]
-Type=Application
-Name=immudex-updates
-Exec=/usr/local/sbin/immudex-updates-wlog
-StartupNotify=false
-Terminal=false