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