refactor(install): improve install if unattended
Output should be mor verbose if unattended to help debugging Signed-off-by: Stephan Wendel <me@stephanwe.de>
This commit is contained in:
parent
36893bf9d4
commit
dcb55816d3
8
Makefile
8
Makefile
@ -33,16 +33,16 @@ help:
|
||||
@echo ""
|
||||
|
||||
install:
|
||||
@bash -c tools/install.sh
|
||||
@bash -c 'tools/install.sh'
|
||||
|
||||
unattended:
|
||||
@bash -c tools/install.sh -z
|
||||
@bash -c 'tools/install.sh -z'
|
||||
|
||||
uninstall:
|
||||
@bash -c tools/uninstall.sh
|
||||
@bash -c 'tools/uninstall.sh'
|
||||
|
||||
update:
|
||||
@bash -c tools/update.sh
|
||||
@bash -c 'tools/update.sh'
|
||||
|
||||
build:
|
||||
@git submodule update
|
||||
|
@ -211,7 +211,8 @@ function install_crowsnest {
|
||||
fi
|
||||
if [ "${UNATTENDED}" == "true" ]; then
|
||||
echo -en "Adding Crowsnest Update Manager entry to moonraker.conf ...\r"
|
||||
cat "${moonraker_update}" >> "${moonraker_conf}"
|
||||
cat "${moonraker_conf}" "${moonraker_update}" | \
|
||||
tee "${moonraker_conf}" > /dev/null
|
||||
echo -e "Adding Crowsnest Update Manager entry to moonraker.conf ... [OK]"
|
||||
fi
|
||||
echo -en "Add User ${BASE_USER} to group 'video' ...\r"
|
||||
@ -261,6 +262,8 @@ function install_raspicam_fix {
|
||||
while getopts "z" arg; do
|
||||
case ${arg} in
|
||||
z)
|
||||
echo "Running in UNATTENDED Mode ..."
|
||||
set -x
|
||||
UNATTENDED="true"
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user