Commit 85e0e17f authored by Bikram Dhoju's avatar Bikram Dhoju
Browse files

Update install_epaath.sh

parent 55edf2a4
Pipeline #374 failed with stages
......@@ -30,31 +30,31 @@ install_apache2
#check if EPaath has been downloaded
cd ~
if [ -f "$packagetar" ]; then
rm -f $packagetar
#echo "the file exists"
fi
if [ -f "$packagetar.tar.gz.sha1" ]; then
rm -f $packagetar.tar.gz.sha1
fi
if [ -d "/var/www/html/$package/" ]; then
#echo "here also it exists"
sudo rm -r /var/www/html/$package/
fi
if [ -f "/usr/share/applications/balpaath.desktop" ];then
#echo "yaha pani xa raixa"
sudo rm -f /usr/share/applications/balpaath.desktop
fi
echo " Downloading EPaath...."
echo
wget -c http://download.olenepal.org/$packagetar
wget -c http://download.olenepal.org/$packagetar.sha1
sha1sum -c EPaath.tar.gz.sha1
# cd ~
# if [ -f "$packagetar" ]; then
# rm -f $packagetar
# #echo "the file exists"
# fi
# if [ -f "$packagetar.tar.gz.sha1" ]; then
# rm -f $packagetar.tar.gz.sha1
# fi
# if [ -d "/var/www/html/$package/" ]; then
# #echo "here also it exists"
# sudo rm -r /var/www/html/$package/
# fi
# if [ -f "/usr/share/applications/balpaath.desktop" ];then
# #echo "yaha pani xa raixa"
# sudo rm -f /usr/share/applications/balpaath.desktop
# fi
# echo " Downloading EPaath...."
# echo
# wget -c http://download.olenepal.org/$packagetar
# wget -c http://download.olenepal.org/$packagetar.sha1
# sha1sum -c EPaath.tar.gz.sha1
if [ $? == 0 ]; then
echo"The package is ready to be extracted."
tar -xzvf $packagetar
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment