From 2d3b00b483baf6c7105d4b4a3d452c0262cae7e7 Mon Sep 17 00:00:00 2001 From: xf0r3m Date: Sat, 25 Apr 2026 13:06:13 +0200 Subject: [PATCH] =?utf8?q?Poprawienie=20b=C5=82edu=20w=20instalatorze=20im?= =?utf8?q?mudex=20oraz=20dostosowanie=20immudex-motd=20do=20=C5=9Bcie?= =?utf8?q?=C5=BCek=20u=C5=BCywanych=20w=20tym=20systemie.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- tools/bin/immudex-motd | 4 ++-- tools/sbin/immudex-install | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/tools/bin/immudex-motd b/tools/bin/immudex-motd index dcf1793..cbec9c8 100755 --- a/tools/bin/immudex-motd +++ b/tools/bin/immudex-motd @@ -93,10 +93,10 @@ else fi echo -e " \t$(uptime | grep -o "load.*$" | tr [a-z] [A-Z])"; echo; -if [ -x /usr/bin/immudex-meteo ]; then +if [ -x /usr/local/bin/immudex-meteo ]; then echo "Weather:"; if [ "$LOCATION" ]; then - /usr/bin/immudex-meteo --micro $LOCATION; + /usr/local/bin/immudex-meteo --micro $LOCATION; fi fi echo; diff --git a/tools/sbin/immudex-install b/tools/sbin/immudex-install index 0c5c636..7d25fd6 100755 --- a/tools/sbin/immudex-install +++ b/tools/sbin/immudex-install @@ -49,12 +49,14 @@ if [ "$1" ]; then help; elif [ "$1" = "--version" ]; then version; - elif $(echo $1 | grep -q 'partition-size'); then - idxPartSize=$(echo $1 | cut -d "=" -f2); - else - idxPartSize="3G"; fi else +if $(echo $1 | grep -q 'partition-size'); then + idxPartSize=$(echo $1 | cut -d "=" -f2); +else + idxPartSize="3G"; +fi + if [ $UID -ne 0 ]; then echo "Permission denied!"; exit 1; -- 2.39.5