Skip to content

Commit

Permalink
Merge pull request #104 from philstark/issue103
Browse files Browse the repository at this point in the history
Added giturl variable
  • Loading branch information
philstark committed Oct 30, 2013
2 parents 7cc2b35 + 5659c17 commit c3a0b62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cpmig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#
VERSION="1.1.4"
scripthome="/root/.cpmig"
giturl="https://raw.github.com/CpanelInc/cPMigration/PUBLIC"
#
#############################################

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c3a0b62

Please sign in to comment.