Skip to content

Commit

Permalink
remove tmp directory for fingerbank
Browse files Browse the repository at this point in the history
  • Loading branch information
stegar123 committed Feb 14, 2024
1 parent 33a8761 commit a2fcabc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions addons/dev-helpers/create-pf-git-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ mkdir -p $dst_dir
tmpdir=`mktemp -d`

git clone -b $pf_ref https://github.com/inverse-inc/packetfence $tmpdir/packetfence
cp -a $tmpdir/packetfence/addons/perl-client/ $tmpdir/fingerbank

## Happens in the PF dir (chdir)
cd $tmpdir/packetfence
Expand All @@ -56,7 +55,7 @@ EOF
cd -
## End of the commands in the PF dir

cd $tmpdir/fingerbank
cd $tmpdir/packetfence/addons/perl-client/
perl db/upgrade.pl --database=db/fingerbank_Local.db
cp db/fingerbank_Local.db db/fingerbank_Upstream.db
cd -
Expand All @@ -68,7 +67,7 @@ mkdir -p $dst_dir/html/captive-portal/profile-templates/
touch $dst_dir/html/captive-portal/profile-templates/.empty

mkdir -p $dst_dir/fingerbank
cp -a $tmpdir/fingerbank/conf $dst_dir/fingerbank/
cp -a $tmpdir/packetfence/addons/perl-client/conf $dst_dir/fingerbank/
touch $dst_dir/fingerbank/conf/fingerbank.conf

find $dst_dir -name .gitignore -delete
Expand Down
3 changes: 1 addition & 2 deletions addons/dev-helpers/update-pf-git-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ dst_dir=`echo $dst_dir | sed 's|/$||'`
tmpdir=`mktemp -d`

git clone -b $pf_ref https://github.com/inverse-inc/packetfence $tmpdir/packetfence
cp -a $tmpdir/packetfence/addons/perl-client/ $tmpdir/fingerbank

cd $tmpdir/packetfence
make configurations
Expand Down Expand Up @@ -61,7 +60,7 @@ ln -s ../sites-available/dynamic-clients dynamic-clients
cd -

mkdir -p $dst_dir/fingerbank
cp -a $tmpdir/fingerbank/conf $dst_dir/fingerbank/
cp -a $tmpdir/packetfence/addons/perl-client/conf $dst_dir/fingerbank/

for file in $files; do
file=`echo $file | sed 's|^/usr/local/pf/||'`
Expand Down

0 comments on commit a2fcabc

Please sign in to comment.