Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions public/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu

# Compatibility entrypoint for installation links published before the
# installer moved to immutable GitHub Release assets.
installer_url="https://github.com/push-in/pam/releases/latest/download/install.sh"

if command -v curl >/dev/null 2>&1; then
exec curl -fsSL "$installer_url" | sh
fi

if command -v wget >/dev/null 2>&1; then
exec wget -qO- "$installer_url" | sh
fi

echo "PAM installer: curl or wget is required." >&2
exit 1