mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-07-09 23:17:40 +02:00
Merge pull request #1792 from RaspAP/fix/installer-submodules
Updates plugin submodules after cloning parent repo
This commit is contained in:
commit
f6da130fce
@ -600,6 +600,7 @@ function _download_latest_files() {
|
|||||||
if [ -n "$username" ] && [ -n "$acctoken" ]; then
|
if [ -n "$username" ] && [ -n "$acctoken" ]; then
|
||||||
insiders_source_url="https://${username}:${acctoken}@github.com/$repo"
|
insiders_source_url="https://${username}:${acctoken}@github.com/$repo"
|
||||||
git clone --branch $branch --depth 1 --recurse-submodules -c advice.detachedHead=false $insiders_source_url $source_dir || clone=false
|
git clone --branch $branch --depth 1 --recurse-submodules -c advice.detachedHead=false $insiders_source_url $source_dir || clone=false
|
||||||
|
git -C $source_dir submodule update --remote plugins || clone=false
|
||||||
else
|
else
|
||||||
_install_status 3
|
_install_status 3
|
||||||
echo "Insiders please read this: https://docs.raspap.com/insiders/#authentication"
|
echo "Insiders please read this: https://docs.raspap.com/insiders/#authentication"
|
||||||
@ -607,6 +608,7 @@ function _download_latest_files() {
|
|||||||
fi
|
fi
|
||||||
if [ -z "$insiders_source_url" ]; then
|
if [ -z "$insiders_source_url" ]; then
|
||||||
git clone --branch $branch --depth 1 --recurse-submodules -c advice.detachedHead=false $git_source_url $source_dir || clone=false
|
git clone --branch $branch --depth 1 --recurse-submodules -c advice.detachedHead=false $git_source_url $source_dir || clone=false
|
||||||
|
git -C $source_dir submodule update --remote plugins || clone=false
|
||||||
fi
|
fi
|
||||||
if [ "$clone" = false ]; then
|
if [ "$clone" = false ]; then
|
||||||
_install_status 1 "Unable to download files from GitHub"
|
_install_status 1 "Unable to download files from GitHub"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user