]> gitweb.morketsmerke.org Git - immudex.git/commitdiff
Poprawienie błedu w instalatorze immudex oraz dostosowanie immudex-motd do ścieżek...
authorxf0r3m <jakubstasinski@protonmail.com>
Sat, 25 Apr 2026 11:06:13 +0000 (13:06 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Sat, 25 Apr 2026 11:06:13 +0000 (13:06 +0200)
tools/bin/immudex-motd
tools/sbin/immudex-install

index dcf1793df4ea23810fc847c640c6b153c5ab5443..cbec9c8c850e403f713917a5303b195ddfc0e677 100755 (executable)
@@ -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;
index 0c5c636d1af00c9e19c41ecc7262e0f334443e69..7d25fd664da8a9e8968998a5c5800e35dfb8c831 100755 (executable)
@@ -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;