test: Add 8 and update 14 files
This commit is contained in:
18
install.sh
18
install.sh
@@ -3,9 +3,8 @@
|
||||
set -euo pipefail
|
||||
|
||||
# Get script directory
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
||||
|
||||
PROJECT="simple-object-server"
|
||||
#SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
||||
export PROJECT="simple-object-server"
|
||||
|
||||
function die() {
|
||||
echo "error: $1" && exit 1
|
||||
@@ -22,6 +21,19 @@ command -v wget >/dev/null 2>&1 || die "wget is not installed. Please install wg
|
||||
|
||||
ARCH=$(uname -m)
|
||||
|
||||
echo "Downloading simple-object-server..."
|
||||
wget "https://getbin.xyz/simple-object-server:latest-${ARCH}" -O "${TARGET_DIR}/simple-object-server"
|
||||
chmod +x "${TARGET_DIR}/simple-object-server"
|
||||
|
||||
echo "Downloading sos-hash utility..."
|
||||
wget "https://getbin.xyz/sos-hash:latest-${ARCH}" -O "${TARGET_DIR}/sos-hash"
|
||||
chmod +x "${TARGET_DIR}/sos-hash"
|
||||
|
||||
echo ""
|
||||
echo "Installation complete!"
|
||||
echo " - Server installed to: ${TARGET_DIR}/simple-object-server"
|
||||
echo " - Hash utility installed to: ${TARGET_DIR}/sos-hash"
|
||||
echo ""
|
||||
echo "To generate token hashes for configuration, use:"
|
||||
echo " sos-hash"
|
||||
|
||||
|
Reference in New Issue
Block a user