added support to Stretch, removed useless code, added info about stretch support

This commit is contained in:
cfcolaco 2017-10-08 18:27:43 +01:00
parent 29a5dbb22b
commit c1918417d6

View file

@ -438,33 +438,6 @@ update_package_cache() {
timestampAsDate=$(date -d @"${timestamp}" "+%b %e")
today=$(date "+%b %e")
#### REMOVE IF TESTING WORKS #####
#<<<<<<< HEAD
# case ${PLAT} in
# Ubuntu|Debian|Devuan)
# case ${OSCN} in
# trusty|jessie|wheezy)
# wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg| $SUDO apt-key add -
# echo "deb http://swupdate.openvpn.net/apt $OSCN main" | $SUDO tee /etc/apt/sources.list.d/swupdate.openvpn.net.list > /dev/null
# echo -n "::: Adding OpenVPN repo for $PLAT $OSCN ..."
# $SUDO apt-get -qq update & spinner $!
# echo " done!"
# ;;
# esac
# ;;
# esac
#=======
# if [[ ${PLAT} == "Ubuntu" || ${PLAT} == "Debian" ]]; then
# if [[ ${OSCN} == "trusty" || ${OSCN} == "jessie" || ${OSCN} == "wheezy" ]]; then
# wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg| $SUDO apt-key add -
# echo "deb http://build.openvpn.net/debian/openvpn/stable $OSCN main" | $SUDO tee /etc/apt/sources.list.d/swupdate.openvpn.net.list > /dev/null
# echo -n "::: Adding OpenVPN repo for $PLAT $OSCN ..."
# $SUDO apt-get -qq update & spinner $!
# echo " done!"
# fi
# fi
#>>>>>>> 454b755116d8cad6b67b56ac15a7235ceac02b5a
##### REMOVE UNTIL THIS POINT######
if [ ! "${today}" == "${timestampAsDate}" ]; then
#update package lists