Unverified Commit c9c325ac authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Merge pull request #63 from jimgregory/ncp-buster

fix distro check in nextcloudpi installer
parents 4cf1a517 0eef927d
...@@ -528,7 +528,9 @@ fi ...@@ -528,7 +528,9 @@ fi
install_ncp (){ install_ncp (){
curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh > ${TEMP_DIR}/install.sh curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh > ${TEMP_DIR}/install.sh
sed 's/grep -q -e .*/[[ \$(lsb_release -is) != "Debian" ]] \&\& \{/' -i ${TEMP_DIR}/install.sh curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/etc/ncp.cfg > ${TEMP_DIR}/ncp.cfg
local DEBIAN_RELEASE=$(awk '{if ($1 == "\"release\":" ) {print $2}}' ${TEMP_DIR}/ncp.cfg | sed 's/[", ]//g')
sed "s/check_distro etc\/ncp.cfg/[[ \$(lsb_release -cs) == \"${DEBIAN_RELEASE}\" ]] /" -i ${TEMP_DIR}/install.sh
bash ${TEMP_DIR}/install.sh bash ${TEMP_DIR}/install.sh
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment