Skip to content

Commit 62a97f2

Browse files
committed
fix: corrupted docker-build.yml workflow + shellcheck SC2034
1 parent b890661 commit 62a97f2

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ concurrency:
2626
group: ${{ github.workflow }}-${{ github.ref }}
2727
cancel-in-progress: true
2828

29-
29+
env:
3030
REGISTRY: ghcr.io
3131
IMAGE_NAME: ${{ github.repository_owner }}/redditmodlog
3232

systemd/install.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -e
66
# Colors for output
77
RED='\033[0;31m'
88
GREEN='\033[0;32m'
9+
# shellcheck disable=SC2034 # Reserved for future use
910
YELLOW='\033[1;33m'
1011
NC='\033[0m' # No Color
1112

@@ -14,16 +15,16 @@ echo "========================================="
1415

1516
# Check if running as root
1617
if [[ $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
1920
fi
2021

2122
# Create user if it doesn't exist
2223
if ! 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
2526
else
26-
echo "User modlogbot already exists"
27+
echo "User modlogbot already exists"
2728
fi
2829

2930
# Create necessary directories
@@ -52,7 +53,7 @@ cp redditmodlog.logrotate /etc/logrotate.d/redditmodlog
5253
echo "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
7172
EOF
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
9091
EOF
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

Comments
 (0)