Update glacier
This commit is contained in:
parent
b53666a47d
commit
752ff88e76
@ -35,6 +35,7 @@ while [[ $# -gt 0 ]]; do
|
||||
exit
|
||||
fi
|
||||
|
||||
# Get package name and download package archive
|
||||
printf "\033[1;34m [ ? ] \033[m Enter package name: " && read input
|
||||
printf "\033[1;34m [ i ] \033[m Installing $input.tar.gz...\n"
|
||||
printf "\033[1;34m [ i ] \033[m Checking databases... " && wget $GREPO1/$input.tar.gz -q --show-progress || wget $GREPO2/$input.tar.gz -q --show-progress || wget $GREPO3/$input.tar.gz -q --show-progress || wget $GREPO4/$input.tar.gz -q --show-progress || wget $GREPO5/$input.tar.gz -q --show-progress || wget $GREPO6/$input.tar.gz -q --show-progress || wget $GREPO7/$input.tar.gz -q --show-progress || wget $GREPO8/$input.tar.gz -q --show-progress
|
||||
@ -42,6 +43,7 @@ while [[ $# -gt 0 ]]; do
|
||||
printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Package not found. " 1>&2
|
||||
exit 1
|
||||
fi
|
||||
# Unpack Tarball
|
||||
printf "\033[1;34m [ i ] \033[m Unpacking $input.tar.gz...\n"
|
||||
mkdir $input && mv $input.tar.gz $input && cd $input
|
||||
tar -xf $input.tar.gz
|
||||
@ -49,14 +51,16 @@ while [[ $# -gt 0 ]]; do
|
||||
printf "\033[1;31m [ \xE2\x9C\x95 ] \033[m Could not unpack $input.tar.gz. " 1>&2
|
||||
exit 1
|
||||
fi
|
||||
# Run installation hooks
|
||||
chmod +x INSTALL.sh
|
||||
chmod +x $input.ts.sh
|
||||
printf "$blue [ i ]$reset The following instruction set will be executed:\n"
|
||||
cat INSTALL.sh
|
||||
printf "\033[1;34m [ i ] \033[m Executing installation instructions...\n"
|
||||
./INSTALL.sh # Actually executes installation script
|
||||
./INSTALL.sh
|
||||
./$input.ts.sh
|
||||
printf "\033[1;34m [ i ] \033[m Cleaning up...\n" # Status message
|
||||
# Clean up
|
||||
printf "\033[1;34m [ i ] \033[m Cleaning up...\n"
|
||||
mv $input-pkginfo.json /etc/glacier/pkginfo
|
||||
cd ..
|
||||
rm -rf $input
|
||||
|
Loading…
Reference in New Issue
Block a user