fix regex at installation script
@@ -53,15 +53,14 @@ if [ "${package_type}" != "null" ]; then
fi
# update repo config for using any/any instead of os/dist
- sedpattern='s@^(deb(-src)?.* https://packagecloud\.io/tsuru/stable)/\w+/?\s+\w+(.*)@\1any/ any\2@g'
+ sedpattern='s@^(deb(-src)?.* https://packagecloud\.io/tsuru/stable/)\w+/?\s+\w+(.*)@\1any/ any\3@g'
cfile="/etc/apt/sources.list.d/tsuru_stable.list"
- [ -f "${cfile}" ] && { sed -E "${sedpattern}" "${cfile}" | sudo tee "${cfile}" ; } >/dev/null
-
+ [ -f "${cfile}" ] && { sed -E "${sedpattern}" "${cfile}" | sudo tee "${cfile}" ; } &>/dev/null
sedpattern='s@^(baseurl=https://packagecloud\.io/tsuru/stable)/\w+/\w+/(.*)@\1/any/any/\2@g'
cfile="/etc/zypp/repos.d/tsuru_stable.repo"
- [ -f "${cfile}" ] && { sed -E "${sedpattern}" "${cfile}" | sudo tee "${cfile}" ; } >/dev/null
+ [ -f "${cfile}" ] && { sed -E "${sedpattern}" "${cfile}" | sudo tee "${cfile}" ; } &>/dev/null
cfile="/etc/yum.repos.d/tsuru_stable.repo"
- [ -f "${cfile}" ] && { sed -E "${sedpattern}" "${cfile}" | sudo tee "${cfile}" ; } >/dev/null
+ [ -f "${cfile}" ] && { sed -E "${sedpattern}" "${cfile}" | sudo tee "${cfile}" ; } &>/dev/null
# update cache
if command -v "apt" >/dev/null ; then
@@ -76,7 +75,7 @@ if [ "${package_type}" != "null" ]; then
zypper --gpg-auto-import-keys refresh tsuru_stable-source
fi
- sudo "${package_installer}" install tsuru
+ sudo "${package_installer}" install tsuru-client
else
echo "Could not install tsuru on your OS, please download the binary from:"
echo " https://github.com/tsuru/tsuru-client/releases/latest"
