Skip to content

Instantly share code, notes, and snippets.

@dogsbody
Last active December 23, 2015 19:29
Show Gist options
  • Save dogsbody/6682956 to your computer and use it in GitHub Desktop.
Save dogsbody/6682956 to your computer and use it in GitHub Desktop.
Script to install zpanel on a OVH VPS
#!/bin/bash
echo "Cleaning up OVH install"
TEMPFILE=`mktemp`
grep -v exclude= /etc/yum.conf > $TEMPFILE
if [ ! -f /etc/yum.conf.orig ]
then
cp /etc/yum.conf /etc/yum.conf.orig
fi
mv $TEMPFILE /etc/yum.conf
if [ ! -f /tmp/installer-10-1-0-centos-64.sh.x ]
then
echo "Downloading zpanel installer"
wget -q -O /tmp/installer-10-1-0-centos-64.sh.x https://github.com/bobsta63/zpanelx/releases/download/10.1.0/installer-10-1-0-centos-64.sh.x
fi
echo "Running ZPanel installer now"
chmod 750 /tmp/installer-10-1-0-centos-64.sh.x
/tmp/installer-10-1-0-centos-64.sh.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment