diff --git a/scripts/dist/install-admin-tools.sh b/scripts/dist/install-admin-tools.sh new file mode 100755 index 000000000..1baf005e8 --- /dev/null +++ b/scripts/dist/install-admin-tools.sh @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +# Installs Admin Tools on Linux +# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-admin-tools.sh) + +# abort if not executed as root +if [[ $(id -u) != "0" ]]; then + echo "Usage: run ${0##*/} as root" 1>&2 + exit 1 +fi + +set -eux; + +if ! command -v go &> /dev/null +then + echo "Go must be installed to run this." + exit 1 +fi + +echo "Installing duf, a better df alternative..." +GOBIN="/usr/local/bin" go install github.com/muesli/duf@latest + +echo "Installing muffet, a fast website link checker..." +GOBIN="/usr/local/bin" go install github.com/raviqqe/muffet@latest + +echo "Installing nuclei, a fast and customizable vulnerability scanner..." +GOBIN="/usr/local/bin" go install github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest + +echo "Installing zgrab, a modular application-layer network scanner..." +GOBIN="/usr/local/bin" go install github.com/zmap/zgrab2@latest + +ln -sf /usr/local/bin/duf /usr/local/bin/df \ No newline at end of file diff --git a/scripts/dist/install-cli-tools.sh b/scripts/dist/install-cli-tools.sh deleted file mode 100755 index e69948ec3..000000000 --- a/scripts/dist/install-cli-tools.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# Installs CLI Tools on Linux -# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-cli-tools.sh) - -# abort if not executed as root -if [[ $(id -u) != "0" ]]; then - echo "Usage: run ${0##*/} as root" 1>&2 - exit 1 -fi - -set -eux; - -if ! command -v go &> /dev/null -then - echo "Go must be installed." - exit 1 -fi - -echo "Installing 'duf', a better 'df' alternative..." -GOBIN="/usr/local/bin" go install github.com/muesli/duf@latest - -echo "Installing 'muffet', a fast website link checker..." -GOBIN="/usr/local/bin" go install github.com/raviqqe/muffet@latest - -ln -sf /usr/local/bin/duf /usr/local/bin/df \ No newline at end of file diff --git a/scripts/dist/install-go-tools.sh b/scripts/dist/install-go-tools.sh index 9bfa06cfc..6edadee48 100755 --- a/scripts/dist/install-go-tools.sh +++ b/scripts/dist/install-go-tools.sh @@ -13,7 +13,7 @@ fi if ! command -v go &> /dev/null then - echo "Go must be installed." + echo "Go must be installed to run this." exit 1 fi