@simplehomelab/deployrr 6.0.5-rc3 → 6.0.7
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.
- package/bin/deployrr-init.sh +6 -0
- package/package.json +1 -1
package/bin/deployrr-init.sh
CHANGED
|
@@ -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"
|