Move teams.pass to a writable directory

This commit is contained in:
nemunaire 2015-01-14 10:59:49 +01:00 committed by Nemunaire
parent 1c7c45ea56
commit b8708408c0
2 changed files with 4 additions and 4 deletions

View File

@ -87,10 +87,10 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
$output .= new_client($team->team_name, $misc_dir);
}
}
if (file_exists("$misc_dir/teams.pass"))
if (file_exists("$misc_dir/PKI/teams.pass"))
{
$output .= file_get_contents("$misc_dir/teams.pass");
unlink("$misc_dir/teams.pass");
$output .= file_get_contents("$misc_dir/PKI/teams.pass");
unlink("$misc_dir/PKI/teams.pass");
}
$template->assign("output", $output);
}

View File

@ -228,7 +228,7 @@ case $1 in
else
echo $ECHO_OPTS "Exported pkcs12 file is ${CLTP12}"
fi
echo "$CLTNAM:$pass" >> ${PKI_DIR}/../teams.pass
echo "$CLTNAM:$pass" >> ${PKI_DIR}/teams.pass
echo "$CLTNAM:$pass"
clean "client" ${CLTNAM}
;;