Skip to content

Commit

Permalink
main: fix directory creation
Browse files Browse the repository at this point in the history
  • Loading branch information
inciner8r committed Dec 21, 2023
1 parent d894969 commit 5eb02a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func main() {

// check directories or create it
if !util.DirectoryExists(filepath.Join(os.Getenv("WG_CONF_DIR"))) {
err := os.Mkdir(filepath.Join(os.Getenv("WG_CONF_DIR")), 0755)
err := os.Mkdir(os.Getenv("WG_CONF_DIR"), 0755)
if err != nil {
log.WithFields(log.Fields{
"err": err,
Expand All @@ -93,7 +93,7 @@ func main() {
// check directories or create it
fmt.Println(os.Getenv("WG_CLIENTS_DIR"))
if !util.DirectoryExists(filepath.Join(os.Getenv("WG_CLIENTS_DIR"))) {
err := os.Mkdir(filepath.Join(os.Getenv("WG_CLIENTS_DIR")), 0755)
err := os.Mkdir(os.Getenv("WG_CLIENTS_DIR"), 0755)
if err != nil {
log.WithFields(log.Fields{
"err": err,
Expand Down

0 comments on commit 5eb02a9

Please sign in to comment.