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
0eef927d
Commit
0eef927d
authored
Jul 23, 2019
by
Jim Gregory
Browse files
fix distro check in nextcloudpi installer
parent
4cf1a517
Changes
1
Hide whitespace changes
Inline
Side-by-side
debian-software
View file @
0eef927d
...
...
@@ -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