|
|
@ -294,8 +294,8 @@ function ee_update_latest() |
|
|
|
mv /etc/nginx/ee-nginx.conf /etc/nginx/ee-nginx.conf.old &>> /dev/null |
|
|
|
fi |
|
|
|
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old &>> /dev/null |
|
|
|
apt-get update &>> /dev/null |
|
|
|
apt-get -o Dpkg::Options::="--force-confmiss"-y install nginx-custom &>> /dev/null |
|
|
|
apt-get update |
|
|
|
apt-get -o Dpkg::Options::="--force-confmiss" -y install nginx-custom |
|
|
|
fi |
|
|
|
fi |
|
|
|
if [ "$ee_distro_version" == "trusty" ]; then |
|
|
@ -308,10 +308,41 @@ function ee_update_latest() |
|
|
|
mv /etc/nginx/ee-nginx.conf /etc/nginx/ee-nginx.conf.old &>> /dev/null |
|
|
|
fi |
|
|
|
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old &>> /dev/null |
|
|
|
apt-get update &>> /dev/null |
|
|
|
apt-get -o Dpkg::Options::="--force-confmiss"-y install nginx-custom &>> /dev/null |
|
|
|
apt-get update |
|
|
|
apt-get -o Dpkg::Options::="--force-confmiss" -y install nginx-custom |
|
|
|
fi |
|
|
|
fi |
|
|
|
if [ "$ee_distro_version" == "wheezy" ]; then |
|
|
|
grep -Hr "deb http://packages.dotdeb.org wheezy all" /etc/apt/sources.list.d/ee-repo.list &>> /dev/null |
|
|
|
if [[ $? -eq 0 ]]; then |
|
|
|
sed -i "/deb http://packages.dotdeb.org wheezy all/d" /etc/apt/sources.list.d/ee-repo.list &>> /dev/null |
|
|
|
echo -e "deb http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/Debian_7.0/ /" >> /etc/apt/sources.list.d/ee-repo.list |
|
|
|
gpg --keyserver "hkp://keys.gnupg.net" --recv-keys '3050AC3CD2AE6F03' |
|
|
|
gpg -a --export --armor '3050AC3CD2AE6F03' | apt-key add - |
|
|
|
if [ -f /etc/nginx/ee-nginx.conf ]; then |
|
|
|
mv /etc/nginx/ee-nginx.conf /etc/nginx/ee-nginx.conf.old &>> /dev/null |
|
|
|
fi |
|
|
|
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old &>> /dev/null |
|
|
|
apt-get update |
|
|
|
apt-get -o Dpkg::Options::="--force-confmiss" -y install nginx-custom |
|
|
|
fi |
|
|
|
fi |
|
|
|
if [ "$ee_distro_version" == "jessie" ]; then |
|
|
|
grep -Hr "deb http://packages.dotdeb.org jessie all" /etc/apt/sources.list.d/ee-repo.list &>> /dev/null |
|
|
|
if [[ $? -eq 0 ]]; then |
|
|
|
sed -i "/deb http://packages.dotdeb.org jessie all/d" /etc/apt/sources.list.d/ee-repo.list &>> /dev/null |
|
|
|
echo -e "deb http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/Debian_7.0/ /" >> /etc/apt/sources.list.d/ee-repo.list |
|
|
|
gpg --keyserver "hkp://keys.gnupg.net" --recv-keys '3050AC3CD2AE6F03' |
|
|
|
gpg -a --export --armor '3050AC3CD2AE6F03' | apt-key add - |
|
|
|
if [ -f /etc/nginx/ee-nginx.conf ]; then |
|
|
|
mv /etc/nginx/ee-nginx.conf /etc/nginx/ee-nginx.conf.old &>> /dev/null |
|
|
|
fi |
|
|
|
mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.old &>> /dev/null |
|
|
|
apt-get update |
|
|
|
apt-get -o Dpkg::Options::="--force-confmiss" -y install nginx-custom |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -f /etc/nginx/nginx.conf ]; then |
|
|
|
sed -i "s/X-Powered-By.*/X-Powered-By \"EasyEngine $ee_version_new\";/" /etc/nginx/nginx.conf &>> /dev/null |
|
|
|
fi |
|
|
|