66# Colors for output
77RED=' \033[0;31m'
88GREEN=' \033[0;32m'
9+ # shellcheck disable=SC2034 # Reserved for future use
910YELLOW=' \033[1;33m'
1011NC=' \033[0m' # No Color
1112
@@ -14,16 +15,16 @@ echo "========================================="
1415
1516# Check if running as root
1617if [[ $EUID -ne 0 ]]; then
17- echo -e " ${RED} This script must be run as root${NC} "
18- exit 1
18+ echo -e " ${RED} This script must be run as root${NC} "
19+ exit 1
1920fi
2021
2122# Create user if it doesn't exist
2223if ! id " modlogbot" & > /dev/null; then
23- echo " Creating modlogbot user..."
24- useradd -r -s /bin/false -d /opt/RedditModLog -m modlogbot
24+ echo " Creating modlogbot user..."
25+ useradd -r -s /bin/false -d /opt/RedditModLog -m modlogbot
2526else
26- echo " User modlogbot already exists"
27+ echo " User modlogbot already exists"
2728fi
2829
2930# Create necessary directories
@@ -52,7 +53,7 @@ cp redditmodlog.logrotate /etc/logrotate.d/redditmodlog
5253echo " Creating example configurations..."
5354
5455# OpenSignups config
55- cat > /etc/redditmodlog/opensignups.json.example << EOF
56+ cat > /etc/redditmodlog/opensignups.json.example << EOF
5657{
5758 "reddit": {
5859 "client_id": "your_client_id",
@@ -71,7 +72,7 @@ cat > /etc/redditmodlog/opensignups.json.example <<EOF
7172EOF
7273
7374# Usenet config
74- cat > /etc/redditmodlog/usenet.json.example << EOF
75+ cat > /etc/redditmodlog/usenet.json.example << EOF
7576{
7677 "reddit": {
7778 "client_id": "your_client_id",
@@ -90,7 +91,7 @@ cat > /etc/redditmodlog/usenet.json.example <<EOF
9091EOF
9192
9293# Example environment file
93- cat > /etc/redditmodlog/example.env << EOF
94+ cat > /etc/redditmodlog/example.env << EOF
9495# Optional environment variables to override config file
9596# Uncomment and set as needed
9697
0 commit comments