Skip to content

Commit

Permalink
Changed the file permissions of configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivas8687 committed Feb 24, 2023
1 parent 57871b1 commit b6cf09e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions scripts/runner.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function setup {
echo "Installing the packages ${*}"
for name in "${@}"; do
if ! dpkg -s "${name}" &>/dev/null; then
apt-get install --yes "${name}"
DEBIAN_FRONTEND=noninteractive apt-get install --yes "${name}"
fi
done
}
Expand Down Expand Up @@ -360,9 +360,9 @@ EOF
}

function setup_iptables {
install_package iptables-persistent &&
rule="POSTROUTING -s 2001:db8:1::/64 ! -o docker0 -j MASQUERADE" &&
ip6tables -t nat -C "${rule}" || ip6tables -t nat -A "${rule}" &&
install_packages iptables-persistent &&
rule=(POSTROUTING -s 2001:db8:1::/64 ! -o docker0 -j MASQUERADE) &&
ip6tables -t nat -C "${rule[@]}" 2>/dev/null || ip6tables -t nat -A "${rule[@]}" &&
ip6tables-save >/etc/iptables/rules.v6
}

Expand Down
2 changes: 1 addition & 1 deletion services/v2ray/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ func (c *Config) SaveToPath(path string) error {
return err
}

return os.WriteFile(path, buf.Bytes(), 0600)
return os.WriteFile(path, buf.Bytes(), 0666)
}

func (c *Config) String() string {
Expand Down
2 changes: 1 addition & 1 deletion services/wireguard/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (c *Config) SaveToPath(path string) error {
return err
}

return os.WriteFile(path, buffer.Bytes(), 0600)
return os.WriteFile(path, buffer.Bytes(), 0666)
}

func (c *Config) String() string {
Expand Down
2 changes: 1 addition & 1 deletion types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (c *Config) SaveToPath(path string) error {
return err
}

return os.WriteFile(path, buffer.Bytes(), 0600)
return os.WriteFile(path, buffer.Bytes(), 0666)
}

func (c *Config) String() string {
Expand Down

0 comments on commit b6cf09e

Please sign in to comment.