diff --git a/scripts/liprepoctl.sh b/scripts/liprepoctl.sh
index ff0a7d834f1ce5587f05f77e9ba90d3e2635b39a..2ad09e0780897230069bec8fa78e4c13fa5379ec 100644
--- a/scripts/liprepoctl.sh
+++ b/scripts/liprepoctl.sh
@@ -3,9 +3,10 @@
 ACTION="$1"
 FILENAME="/etc/apt/sources.list.d/lipoffline.list"
 ACTIVATED=`test -e "$FILENAME"`
-DIST_CODENAME="wily"
-DIST_VERSION="15.10"
 
+. /etc/lsb-release
+DIST_CODENAME=$DISTRIB_CODENAME
+DIST_VERSION=$DISTRIB_RELEASE
 
 function install_repo()
 {