]> gitweb.morketsmerke.org Git - immudex-testing.git/commitdiff
Poprawienie określenia architektury systemu w pliku bazowym
authorxf0r3m <jakubstasinski@protonmail.com>
Wed, 30 Aug 2023 15:04:47 +0000 (17:04 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Wed, 30 Aug 2023 15:04:47 +0000 (17:04 +0200)
versions/base.sh

index c2cee54f09a64f5584b3eb6214cb83db478dcaed..e5e477cfaf508a432a66cf8a4804654b69a43ab4 100644 (file)
@@ -1,5 +1,6 @@
 #!/bin/bash
 
+ARCH=$(dpkg --print-architecture);
 cd;
 if [ -x /usr/bin/git ]; then git clone https://git.morketsmerke.org/git/immudex-testing;
 else apt install git -y && git clone https://git.morketsmerke.org/git/immudex-testing;
@@ -16,7 +17,7 @@ echo "deb-src http://deb.debian.org/debian/ testing-updates main" >> /etc/apt/so
 update_packages;
 
 
-if [ $(uname -m) = "x86_64" ]; then
+if [ $ARCH = "amd64" ]; then
 install_packages --no-install-recommends linux-image-amd64 live-boot systemd-sysv -y;
 else
 install_packages --no-install-recommends linux-image-686-pae live-boot systemd-sysv -y;
@@ -33,7 +34,7 @@ install_packages task-desktop task-xfce-desktop;
 
 install_packages firejail ufw cryptsetup lsof extlinux grub-efi-amd64 efibootmgr bash-completion etherwake wakeonlan cifs-utils wget figlet mpv yt-dlp vim-gtk3 redshift irssi nmap nfs-common remmina python3-pip ffmpeg debootstrap squashfs-tools xorriso syslinux-efi grub-pc-bin grub-efi-amd64-bin mtools dosfstools chrony python3-venv isolinux rsync mutt gimp openvpn netselect-apt gvfs-backends dnsutils xfce4-notes-plugin;
 
-if [ $(dpkg --print-architecture) = "amd64" ]; then
+if [ $ARCH = "amd64" ]; then
   wget https://ftp.morketsmerke.org/immudex/testing/software/librewolf/librewolf-116.0.3-1.en-US.linux-x86_64.tar.bz2;
   tar -xf librewolf-116.0.3-1.en-US.linux-x86_64.tar.bz2 -C /usr/lib;
   rm librewolf-116.0.3-1.en-US.linux-x86_64.tar.bz2;