@simplehomelab/deployrr 6.0.4-rc3 → 6.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,6 +4,12 @@ set -euo pipefail
4
4
  # Handle npx symlinks correctly
5
5
  TARGET_FILE="$(realpath "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}" 2>/dev/null || echo "${BASH_SOURCE[0]}")"
6
6
  SCRIPT_DIR="$(cd "$(dirname "$TARGET_FILE")/.." && pwd)"
7
+
8
+ # If npx copies the script or we are in a flattened node_modules structure, SCRIPT_DIR might just be node_modules
9
+ if [[ ! -d "$SCRIPT_DIR/apps" ]] && [[ -d "$SCRIPT_DIR/@simplehomelab/deployrr/apps" ]]; then
10
+ SCRIPT_DIR="$SCRIPT_DIR/@simplehomelab/deployrr"
11
+ fi
12
+
7
13
  DEPLOYRR_DIR="/opt/deployrr"
8
14
 
9
15
  echo "🚀 Deployrr Installer"
@@ -43,8 +49,13 @@ if curl -fsSL -o "$DEPLOYRR_DIR/$BINARY" \
43
49
  "https://files.deployrr.app/binary/${VERSION}/${ARCH}"; then
44
50
  chmod +x "$DEPLOYRR_DIR/$BINARY"
45
51
  echo ""
46
- echo "✅ Deployrr v${VERSION} installed to $DEPLOYRR_DIR/$BINARY"
47
- echo " Run: sudo $DEPLOYRR_DIR/$BINARY"
52
+ if ln -sf "$DEPLOYRR_DIR/$BINARY" "/usr/local/bin/deployrr"; then
53
+ echo " Deployrr v${VERSION} installed to $DEPLOYRR_DIR/$BINARY"
54
+ echo " Run: sudo deployrr"
55
+ else
56
+ echo "✅ Deployrr v${VERSION} installed to $DEPLOYRR_DIR/$BINARY"
57
+ echo " Run: sudo $DEPLOYRR_DIR/$BINARY"
58
+ fi
48
59
  else
49
60
  echo "❌ Download failed. Check your internet connection."
50
61
  exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simplehomelab/deployrr",
3
- "version": "6.0.4-rc3",
3
+ "version": "6.0.6",
4
4
  "description": "Deployrr - Docker homelab deployment manager",
5
5
  "bin": {
6
6
  "deployrr": "./bin/deployrr-init.sh"