Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
c9c325ac
Unverified
Commit
c9c325ac
authored
Jul 23, 2019
by
Igor Pečovnik
Committed by
GitHub
Jul 23, 2019
Browse files
Merge pull request #63 from jimgregory/ncp-buster
fix distro check in nextcloudpi installer
parents
4cf1a517
0eef927d
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-software
View file @
c9c325ac
...
...
@@ -528,7 +528,9 @@ fi
install_ncp (){
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
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment