Skip to content

Commit

Permalink
fixed bash lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
raianand committed Apr 15, 2024
1 parent f7bd32a commit d5acdc6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file modified src/scripts/audit.sh
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions src/scripts/create-bolt-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [[ $debug == "true" ]]; then
fi

username=$1
useradd $username
useradd "$username"

mkdir /home/$username
chown $username:$username /home/$username
mkdir /home/"$username"
chown "$username":$username /home/"$username"
8 changes: 4 additions & 4 deletions src/scripts/iptables.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ boltUser=$1
sysctl -w net.ipv4.ip_forward=1
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv4.conf.all.send_redirects=0
iptables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner $boltUser --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner $boltUser --dport 443 -j REDIRECT --to-port 8080
ip6tables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner $boltUser --dport 80 -j REDIRECT --to-port 8080
ip6tables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner $boltUser --dport 443 -j REDIRECT --to-port 8080
iptables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner "$boltUser" --dport 80 -j REDIRECT --to-port 8080
iptables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner "$boltUser" --dport 443 -j REDIRECT --to-port 8080
ip6tables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner "$boltUser" --dport 80 -j REDIRECT --to-port 8080
ip6tables -t nat -A OUTPUT -p tcp -m owner ! --uid-owner "$boltUser" --dport 443 -j REDIRECT --to-port 8080

0 comments on commit d5acdc6

Please sign in to comment.