mirror of
https://github.com/buanet/ioBroker.docker.git
synced 2026-01-05 23:52:56 +02:00
small fixes
This commit is contained in:
8
debian/scripts/setup_packages.sh
vendored
8
debian/scripts/setup_packages.sh
vendored
@@ -24,8 +24,8 @@ check_package_validity() {
|
|||||||
if echo "$packages" | grep -qw "influxdb" && echo "$packages" | grep -qw "influxdb2-cli"; then
|
if echo "$packages" | grep -qw "influxdb" && echo "$packages" | grep -qw "influxdb2-cli"; then
|
||||||
echo "PACKAGES includes influxdb AND influxdb2-cli."
|
echo "PACKAGES includes influxdb AND influxdb2-cli."
|
||||||
echo "As installing both packages together is not possible, they will be skipped."
|
echo "As installing both packages together is not possible, they will be skipped."
|
||||||
packages=$(echo "$packages" | sed 's/influxdb//g;s/influxdb2-cli//g')
|
packages=$(echo "$packages" | sed 's/influxdb2-cli//g;s/influxdb//g')
|
||||||
if [[ $debug == "true" ]]; then echo "[DEBUG] New list of packages: = ""$packages"; fi
|
if [[ $debug == "true" ]]; then echo "[DEBUG] New list of packages: ""$packages"; fi
|
||||||
echo ' '
|
echo ' '
|
||||||
fi
|
fi
|
||||||
# check string for double spaces
|
# check string for double spaces
|
||||||
@@ -50,8 +50,8 @@ if [[ "$1" == "-install" ]]; then
|
|||||||
echo ' '
|
echo ' '
|
||||||
else
|
else
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$i" >> /opt/scripts/setup_packages.log 2>&1
|
DEBIAN_FRONTEND=noninteractive apt-get -q -y install "$i" >> /opt/scripts/setup_packages.log 2>&1
|
||||||
return=$?
|
return1=$?
|
||||||
if [[ "$return" -ne 0 ]]; then
|
if [[ "$return1" -ne 0 ]]; then
|
||||||
echo "Failed."
|
echo "Failed."
|
||||||
echo "For more details see \"/opt/scripts/setup_packages.log\"."
|
echo "For more details see \"/opt/scripts/setup_packages.log\"."
|
||||||
echo ' '
|
echo ' '
|
||||||
|
|||||||
Reference in New Issue
Block a user