Updated install procedures for manjaro

This commit is contained in:
Kevin Veen-Birkenbach 2022-08-21 09:45:26 +02:00
parent 032bd7dc5f
commit 7a89eca36a
2 changed files with 18 additions and 5 deletions

View File

@ -108,7 +108,7 @@ get_packages(){
HEADER(){ HEADER(){
echo echo
echo "${COLOR_YELLOW}The" echo "${COLOR_YELLOW}The"
base64 -d <<<"ICBfX19fXyAgICAgICAgICAgICAgICBfX19fXyAgICAgICAgICAgXyAgICAgICAgICAgICAgICAgCiAvIF9fX198ICAgICAgICAgICAgICAvIF9fX198ICAgICAgICAgfCB8ICAgICAgICAgICAgICAgIAp8IHwgICAgIF9fXyAgXyBfXyBfX198IChfX18gIF8gICBfIF9fX3wgfF8gX19fIF8gX18gX19fICAKfCB8ICAgIC8gXyBcfCAnX18vIF8gXFxfX18gXHwgfCB8IC8gX198IF9fLyBfIFwgJ18gYCBfIFwgCnwgfF9fX3wgKF8pIHwgfCB8ICBfXy9fX19fKSB8IHxffCBcX18gXCB8fCAgX18vIHwgfCB8IHwgfAogXF9fX19fXF9fXy98X3wgIFxfX198X19fX18vIFxfXywgfF9fXy9cX19cX19ffF98IHxffCB8X3wKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX18vIHwgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfF9fXy8gICAgICAgICAgICAgICAgICAgICAgIAo=" echo "LINUX IMAGE MANAGER"
echo "is an administration tool designed from and for Kevin Veen-Birkenbach." echo "is an administration tool designed from and for Kevin Veen-Birkenbach."
echo echo
echo "Licensed under GNU GENERAL PUBLIC LICENSE Version 3" echo "Licensed under GNU GENERAL PUBLIC LICENSE Version 3"

View File

@ -36,7 +36,7 @@ getent passwd "$origin_username" > /dev/null 2 || error "User $origin_username d
origin_user_home="/home/$origin_username/" origin_user_home="/home/$origin_username/"
info "Image routine starts..." info "Image routine starts..."
image_folder="$origin_user_home""Images/"; image_folder="$origin_user_home""Software/Images/";
info "The images will be stored in \"$image_folder\"." info "The images will be stored in \"$image_folder\"."
if [ ! -d "$image_folder" ]; then if [ ! -d "$image_folder" ]; then
info "Folder \"$image_folder\" doesn't exist. It will be created now." && info "Folder \"$image_folder\" doesn't exist. It will be created now." &&
@ -86,9 +86,8 @@ case "$os" in
imagename="manjaro-gnome-20.0-200426-linux56.iso" imagename="manjaro-gnome-20.0-200426-linux56.iso"
;; ;;
"21") "21")
image_checksum="3ee5c59d21b1d78ec7fc655acc8f05c47237c6c0" base_download_url="https://download.manjaro.org/gnome/21.3.7/"
base_download_url="https://download.manjaro.org/gnome/21.2rc1/" imagename="manjaro-gnome-21.3.7-220816-linux515.iso"
imagename="manjaro-gnome-21.2rc1-211211-linux515.iso"
;; ;;
esac esac
;; ;;
@ -148,6 +147,20 @@ if [ -f "$image_path" ]
wget "$download_url" -O "$image_path" || error "Download from \"$download_url\" failed." wget "$download_url" -O "$image_path" || error "Download from \"$download_url\" failed."
fi fi
if [ -z "$image_checksum" ]
then
sha1_download_url="$download_url.sha1"
info "Image Chechsum is not defined. Try to download image signature from $sha1_download_url"
if wget -q --method=HEAD "$sha1_download_url";
then
image_checksum="$(wget $sha1_download_url -q -O -)"
info "Defined image_checksum as $image_checksum"
else
warning "No checksum found under $sha1_download_url."
fi
fi
info "Verifying image..." info "Verifying image..."
if [[ -v image_checksum ]] if [[ -v image_checksum ]]
then then