Skip to content

Commit

Permalink
Use a sample configuration file for parsedmarc
Browse files Browse the repository at this point in the history
  • Loading branch information
dwydler committed Oct 4, 2024
1 parent ed0b2e6 commit 1542b19
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Except this file
!.gitignore
.env
.env
parsedmarc.ini
File renamed without changes.
18 changes: 16 additions & 2 deletions setup-epk.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
#!/bin/bash

# Variables
APPPATH=/opt/containers/parsedmarc-docker/parsedmarc/conf
FILE=parsedmarc.ini

echo "Check if the file $FILE already exist.";
if [ ! -f $APPPATH/$FILE ]; then
echo "File $FILE was created successfully.";
echo
/bin/cp $APPPATH/parsedmarc.ini.example $APPPATH/$FILE
else
echo "File $FILE already exist!";
echo
fi

######

APPPATH=/opt/containers/parsedmarc-docker
FILE=.env


echo "Check if the file .env already exist.";
if [ ! -f $APPPATH/$FILE ]; then
echo "File $FILE was created successfully.";
Expand All @@ -14,6 +27,7 @@ else
exit 0
fi

######

echo "Set random password for the user elastic.";
password=$(/bin/tr -dc 'A-Za-z0-9!?%=' < /dev/urandom | /bin/head -c 20)
Expand Down

0 comments on commit 1542b19

Please sign in to comment.