diff --git a/cpmig.sh b/cpmig.sh index f53ff69..74b465d 100644 --- a/cpmig.sh +++ b/cpmig.sh @@ -10,6 +10,7 @@ # VERSION="1.1.4" scripthome="/root/.cpmig" +giturl="https://raw.github.com/CpanelInc/cPMigration/PUBLIC" # ############################################# @@ -49,11 +50,11 @@ install_sshpass(){ arch=`uname -i` mkdir_ifneeded $scripthome/.sshpass/sshpass-1.05/ if [[ "$arch" -eq "x86_64" ]]; then - wget -q -P $scripthome/.sshpass/sshpass-1.05/ https://raw.github.com/CpanelInc/cPMigration/PUBLIC/support/sshpass64 + wget -q -P $scripthome/.sshpass/sshpass-1.05/ $giturl/support/sshpass64 mv $scripthome/.sshpass/sshpass-1.05/sshpass64 $scripthome/.sshpass/sshpass-1.05/sshpass chmod +x $scripthome/.sshpass/sshpass-1.05/sshpass elif [[ "$arch" -eq "i386" ]]; then - wget -q -P $scripthome/.sshpass/sshpass-1.05/ https://raw.github.com/CpanelInc/cPMigration/PUBLIC/support/sshpass32 + wget -q -P $scripthome/.sshpass/sshpass-1.05/ $giturl/support/sshpass32 mv $scripthome/.sshpass/sshpass-1.05/sshpass32 $scripthome/.sshpass/sshpass-1.05/sshpass chmod +x $scripthome/.sshpass/sshpass-1.05/sshpass else