#!/bin/bash
cd /opt/lampp/htdocs/download
var=`ls -tr | tail -n 1`
echo $var
rm -rf /opt/lampp/htdocs/latest/patch_*.tar.gz
cp /opt/lampp/htdocs/download/$var /opt/lampp/htdocs/latest/
echo '/opt/lampp/htdocs/'$var
