Issue : Update lfs client installation script.
Update lfs client installation script the same way that lfs master and
lfs chunk installations were updated in
@@ -40,24 +40,25 @@ else
yum -y -q install epel-release \
lizardfs-client
_LFS_INSTALL_RESULT=$?
+ else
+ apt-get install lsb-release gnupg -y -qq
+ source /etc/os-release
+ if [ "$ID" == "debian" ]; then
+ # If it is debian (especially v8 - "jessie") - use /debian/ repository
+ _repository=debian
+ _release="$(lsb_release -sc)"
else
# Use xenial release even for 18.04
+ _repository=ubuntu
_release=xenial
+ fi
+
if [ -f "/etc/apt/sources.list.d/lizardfs.list" ]; then
pipe_log_info "/etc/apt/sources.list.d/lizardfs.list already exists. Skipping repo initialization" "$LFS_INSTALL_TASK"
else
- apt-get install lsb-release gnupg -y -qq && \
wget -O - http://packages.lizardfs.com/lizardfs.key | apt-key add -
- # If it is debian (especially v8 - "jessie") - use /debian/ repository
- source /etc/os-release
- if [ "$ID" == "debian" ]; then
- _release="$(lsb_release -sc)"
- echo "deb [trusted=yes] http://packages.lizardfs.com/debian/$_release $_release main" > /etc/apt/sources.list.d/lizardfs.list
- echo "deb-src http://packages.lizardfs.com/debian/$_release $_release main" >> /etc/apt/sources.list.d/lizardfs.list
- else
- echo "deb [trusted=yes] http://packages.lizardfs.com/ubuntu/$_release $_release main" > /etc/apt/sources.list.d/lizardfs.list
- fi
+ echo "deb [trusted=yes] http://packages.lizardfs.com/$_repository/$_release $_release main" > /etc/apt/sources.list.d/lizardfs.list
apt-get update -qq
fi
