Add files via upload
This commit is contained in:
parent
98406ad3b5
commit
cc1e89bf51
21
glacier-install.sh
Normal file
21
glacier-install.sh
Normal file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
# glacier-install
|
||||
# Script used to fetch installation scripts and run them
|
||||
|
||||
# Require the script to be run as root
|
||||
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
|
||||
echo "[ X ] Please run Glacier as root."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "[ ? ] Enter package name:" && read input
|
||||
echo "[ i ] Downloading source tarball for $input..."
|
||||
wget https://github.com/everest-linux/glacier-pkgs/raw/main/pkgs/$input.tar.gz || echo "[ X ] Failed to get archive for $input." && exit
|
||||
echo "[ i ] Unpacking $input.tar.gz..."
|
||||
tar -xvf $input.tar.gz || echo "[ X ] Failed to unpack archive for $input." && exit
|
||||
cd $input
|
||||
chmod +x INSTALL.sh
|
||||
./INSTALL.sh # Actually executes installation script
|
||||
echo "[ i ] Cleaning up..." # Status message
|
||||
rm $input.tar.gz # Cleans up installation files
|
||||
echo "[ i ] Finished installation of $input." || echo "[ X ] Installation of $input failed." && exit # Indicates success || Indicates failure
|
Loading…
Reference in New Issue
Block a user