Move teams.pass to a writable directory
This commit is contained in:
parent
1c7c45ea56
commit
b8708408c0
@ -87,10 +87,10 @@ if (!empty($_FILES["inputFile"]['tmp_name']))
|
|||||||
$output .= new_client($team->team_name, $misc_dir);
|
$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");
|
$output .= file_get_contents("$misc_dir/PKI/teams.pass");
|
||||||
unlink("$misc_dir/teams.pass");
|
unlink("$misc_dir/PKI/teams.pass");
|
||||||
}
|
}
|
||||||
$template->assign("output", $output);
|
$template->assign("output", $output);
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ case $1 in
|
|||||||
else
|
else
|
||||||
echo $ECHO_OPTS "Exported pkcs12 file is ${CLTP12}"
|
echo $ECHO_OPTS "Exported pkcs12 file is ${CLTP12}"
|
||||||
fi
|
fi
|
||||||
echo "$CLTNAM:$pass" >> ${PKI_DIR}/../teams.pass
|
echo "$CLTNAM:$pass" >> ${PKI_DIR}/teams.pass
|
||||||
echo "$CLTNAM:$pass"
|
echo "$CLTNAM:$pass"
|
||||||
clean "client" ${CLTNAM}
|
clean "client" ${CLTNAM}
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user