From: xf0r3m Date: Sat, 25 Apr 2026 11:06:13 +0000 (+0200) Subject: Poprawienie błedu w instalatorze immudex oraz dostosowanie immudex-motd do ścieżek... X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=2d3b00b483baf6c7105d4b4a3d452c0262cae7e7;p=immudex.git Poprawienie błedu w instalatorze immudex oraz dostosowanie immudex-motd do ścieżek używanych w tym systemie. --- 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;