mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-20 10:21:36 -04:00
Replace +++ message part with ****
Change rust message if already installed
This commit is contained in:
@@ -2,11 +2,6 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if command -v rustc >/dev/null 2>&1; then
|
|
||||||
echo "+++ rust is already installed +++"
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
RUST_BINS_PATH="/rust-bins"
|
RUST_BINS_PATH="/rust-bins"
|
||||||
PACKAGES_TO_INSTALL_LIST="/mod-repo-packages-to-install.list"
|
PACKAGES_TO_INSTALL_LIST="/mod-repo-packages-to-install.list"
|
||||||
|
|
||||||
@@ -14,7 +9,7 @@ ARCH=$(uname -m)
|
|||||||
SUPPORTED_ARCHS=("x86_64" "aarch64")
|
SUPPORTED_ARCHS=("x86_64" "aarch64")
|
||||||
|
|
||||||
if [[ ! " ${SUPPORTED_ARCHS[@]} " =~ " ${ARCH} " ]]; then
|
if [[ ! " ${SUPPORTED_ARCHS[@]} " =~ " ${ARCH} " ]]; then
|
||||||
echo "+++ unsupported architecture: $ARCH +++"
|
echo "**** unsupported architecture: $ARCH ****"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -25,20 +20,19 @@ grep_os_release() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [[ -f "$RUST_BINARY_ARCHIVE_PATH" ]]; then
|
if [[ -f "$RUST_BINARY_ARCHIVE_PATH" ]]; then
|
||||||
echo "+++ unpacking rust tar +++"
|
echo "**** unpacking rust tar ****"
|
||||||
tar -xzf "$RUST_BINARY_ARCHIVE_PATH" -C "$RUST_BINS_PATH" --strip-components=1
|
tar -xzf "$RUST_BINARY_ARCHIVE_PATH" -C "$RUST_BINS_PATH" --strip-components=1
|
||||||
|
|
||||||
echo "+++ installing rust +++"
|
echo "**** installing rust ****"
|
||||||
"$RUST_BINS_PATH/install.sh"
|
"$RUST_BINS_PATH/install.sh"
|
||||||
rm -rf "$RUST_BINS_PATH"
|
rm -rf "$RUST_BINS_PATH"
|
||||||
|
|
||||||
echo "+++ adding build tools +++"
|
echo "**** adding build tools ****"
|
||||||
if grep_os_release "debian"; then
|
if grep_os_release "debian"; then
|
||||||
echo "build-essential" >>"$PACKAGES_TO_INSTALL_LIST"
|
echo "build-essential" >>"$PACKAGES_TO_INSTALL_LIST"
|
||||||
else
|
else
|
||||||
echo "gcc" >>"$PACKAGES_TO_INSTALL_LIST"
|
echo "gcc" >>"$PACKAGES_TO_INSTALL_LIST"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "+++ rust tar not found +++"
|
echo "**** rust already installed ****"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user