0.6r4 - rpm init
This commit is contained in:
@@ -8,12 +8,25 @@ function get_dep(){
|
|||||||
if [[ $@ -ne "p7zip-plugins" ]]; then complete_install $@; fi
|
if [[ $@ -ne "p7zip-plugins" ]]; then complete_install $@; fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function install_centos(){
|
||||||
|
if [ -n "$(grep "centos" /etc/*-release)" ]; then
|
||||||
|
yum install -y -q epel-release 1> /dev/null
|
||||||
|
rpm -U --quiet http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm 1> /dev/null
|
||||||
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 1> /dev/null
|
||||||
|
yum repolist 1> /dev/null
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Run
|
# Run
|
||||||
|
|
||||||
echo -e "APT system detected"
|
echo -e "APT system detected"
|
||||||
echo "---------------------"
|
echo "---------------------"
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
if [ $# -eq 1 ]; then
|
||||||
|
install_centos
|
||||||
if $PRIVSOFT; then
|
if $PRIVSOFT; then
|
||||||
rarInstall
|
rarInstall
|
||||||
fi
|
fi
|
||||||
@@ -34,6 +47,7 @@ else
|
|||||||
rarInstall
|
rarInstall
|
||||||
;;
|
;;
|
||||||
"7z" | "7zip" | "p7zip")
|
"7z" | "7zip" | "p7zip")
|
||||||
|
install_centos
|
||||||
get_dep p7zip
|
get_dep p7zip
|
||||||
get_dep p7zip-plugins
|
get_dep p7zip-plugins
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user