prole/etc/init-port-forwards.sh

18 lines
548 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# DEPRECATED: this script has been renamed to etc/init_port_forwards.sh
# Keep as a thin wrapper for backward compatibility.
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
NEW_SCRIPT="$SCRIPT_DIR/init_port_forwards.sh"
echo "[init-port-forwards.sh] WARNING: This script is deprecated. Please use etc/init_port_forwards.sh instead." >&2
if [ -x "$NEW_SCRIPT" ]; then
exec "$NEW_SCRIPT" "$@"
else
echo "[init-port-forwards.sh] ERROR: $NEW_SCRIPT not found or not executable." >&2
exit 127
fi