mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
(not tested) Validate that all manifest install args are indeed provided to avoid miserably hanging forever
This commit is contained in:
parent
33c2095d29
commit
a0be02d592
1 changed files with 5 additions and 0 deletions
|
@ -52,6 +52,11 @@ _INSTALL_APP () {
|
||||||
LXC_START "bash /preinstall.sh"
|
LXC_START "bash /preinstall.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for ARG in $(jq -r '.arguments.install[].name' $package_path/manifest.json)
|
||||||
|
do
|
||||||
|
echo "$install_args" | grep -q -E "\<$ARG=" || { log_error "Missing install arg $ARG ?"; return 1; }
|
||||||
|
done
|
||||||
|
|
||||||
# Install the application in a LXC container
|
# Install the application in a LXC container
|
||||||
log_info "Running: yunohost app install --force /app_folder -a $install_args"
|
log_info "Running: yunohost app install --force /app_folder -a $install_args"
|
||||||
_RUN_YUNOHOST_CMD "app install --force /app_folder -a $install_args"
|
_RUN_YUNOHOST_CMD "app install --force /app_folder -a $install_args"
|
||||||
|
|
Loading…
Add table
Reference in a new issue