We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 910851e commit 6be2c38Copy full SHA for 6be2c38
1 file changed
scripts/setup.sh
@@ -1,6 +1,7 @@
1
#!/bin/bash
2
# Media Stack Setup Helper (Advanced)
3
# Creates all required folders and prepares config files.
4
+# Usage: bash scripts/setup.sh [--help]
5
6
set -e
7
@@ -10,6 +11,30 @@ NC='\033[0m'
10
11
12
SCRIPT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
13
14
+usage() {
15
+ cat <<EOF
16
+Usage: bash scripts/setup.sh
17
+
18
+Creates Media folder structure, generates .env, and copies config templates.
19
20
+Options:
21
+ --help Show this help message
22
+EOF
23
+}
24
25
+case "${1:-}" in
26
+ "" ) ;;
27
+ --help|-h)
28
+ usage
29
+ exit 0
30
+ ;;
31
+ *)
32
+ echo "Unknown option: $1"
33
34
+ exit 1
35
36
+esac
37
38
echo ""
39
echo "=============================="
40
echo " Media Stack Setup (Advanced)"
0 commit comments