Update glacier
This commit is contained in:
parent
73daf1bfbb
commit
efada985df
@ -60,6 +60,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
cat INSTALL.sh
|
cat INSTALL.sh
|
||||||
printf "\033[1;34m [ i ] \033[m Executing installation instructions...\n"
|
printf "\033[1;34m [ i ] \033[m Executing installation instructions...\n"
|
||||||
./INSTALL.sh
|
./INSTALL.sh
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
printf "$red [ $error ]$reset Instructions were either unable to execute, or encountered an error while executing." 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
./$input.ts.sh
|
./$input.ts.sh
|
||||||
# Clean up
|
# Clean up
|
||||||
printf "\033[1;34m [ i ] \033[m Cleaning up...\n"
|
printf "\033[1;34m [ i ] \033[m Cleaning up...\n"
|
||||||
@ -99,6 +103,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
cat UPDATE.sh
|
cat UPDATE.sh
|
||||||
printf "\033[1;34m [ i ] \033[m Executing update instructions...\n"
|
printf "\033[1;34m [ i ] \033[m Executing update instructions...\n"
|
||||||
./UPDATE.sh
|
./UPDATE.sh
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
printf "$red [ $error ]$reset Instructions were either unable to execute, or encountered an error while executing." 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
./$input.ts.sh
|
./$input.ts.sh
|
||||||
printf "\033[1;34m [ i ] \033[m Cleaning up...\n"
|
printf "\033[1;34m [ i ] \033[m Cleaning up...\n"
|
||||||
mv $input-pkginfo.json /etc/glacier/pkginfo
|
mv $input-pkginfo.json /etc/glacier/pkginfo
|
||||||
@ -135,6 +143,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
cat REMOVE.sh
|
cat REMOVE.sh
|
||||||
printf "$blue [ i ] $reset Executing removal instructions...\n"
|
printf "$blue [ i ] $reset Executing removal instructions...\n"
|
||||||
./REMOVE.sh
|
./REMOVE.sh
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
printf "$red [ $error ]$reset Instructions were either unable to execute, or encountered an error while executing." 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
rm /var/log/glacier/$input.timestamp
|
rm /var/log/glacier/$input.timestamp
|
||||||
printf "\033[1;34m [ i ] \033[m Cleaning up... \n" # Status message
|
printf "\033[1;34m [ i ] \033[m Cleaning up... \n" # Status message
|
||||||
cd ..
|
cd ..
|
||||||
@ -197,6 +209,10 @@ while [[ $# -gt 0 ]]; do
|
|||||||
chmod +x INSTALL.sh
|
chmod +x INSTALL.sh
|
||||||
chmod +x $input.ts.sh
|
chmod +x $input.ts.sh
|
||||||
./INSTALL.sh # Actually executes installation script
|
./INSTALL.sh # Actually executes installation script
|
||||||
|
if [ "$?" != "0" ]; then
|
||||||
|
printf "$red [ $error ]$reset Instructions were either unable to execute, or encountered an error while executing." 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
./$input.ts.sh
|
./$input.ts.sh
|
||||||
printf "\033[1;34m [ i ] \033[m Cleaning up...\n" # Status message
|
printf "\033[1;34m [ i ] \033[m Cleaning up...\n" # Status message
|
||||||
mv -v $input-pkginfo.json /etc/glacier/pkginfo
|
mv -v $input-pkginfo.json /etc/glacier/pkginfo
|
||||||
|
Loading…
Reference in New Issue
Block a user