Dist: Rename install-cli-tools.sh to install-admin-tools.sh
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
fd27f88718
commit
0941bc9b4f
3 changed files with 33 additions and 27 deletions
32
scripts/dist/install-admin-tools.sh
vendored
Executable file
32
scripts/dist/install-admin-tools.sh
vendored
Executable file
|
@ -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
|
26
scripts/dist/install-cli-tools.sh
vendored
26
scripts/dist/install-cli-tools.sh
vendored
|
@ -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
|
2
scripts/dist/install-go-tools.sh
vendored
2
scripts/dist/install-go-tools.sh
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue