Commit fbeaef5e authored by armin's avatar armin
Browse files

fixed path

parent d8089ad0
......@@ -191,8 +191,8 @@ bool ApplePushModel::sendMessage() {
}
void ApplePushModel::loadApiKey() {
std::ifstream ifsPem("/home/armin/certs/apple/key.pem");
std::ifstream ifsSettings("/home/armin/certs/apple/settings.json");
std::ifstream ifsPem("/certs/apple/key.pem");
std::ifstream ifsSettings("/certs/apple/settings.json");
std::string pemContent((std::istreambuf_iterator<char>(ifsPem)),(std::istreambuf_iterator<char>()));
std::string settingsContent((std::istreambuf_iterator<char>(ifsSettings)),(std::istreambuf_iterator<char>()));
if(pemContent.length()&&settingsContent.length()){
......
......@@ -39,8 +39,7 @@
std::string GooglePushModel::mApiKey;
void GooglePushModel::loadApiKey() {
//std::ifstream ifs("/certs/google/serverKey.txt");
std::ifstream ifs("/home/armin/certs/google/serverKey.txt");
std::ifstream ifs("/certs/google/serverKey.txt");
std::string content((std::istreambuf_iterator<char>(ifs)),
(std::istreambuf_iterator<char>()));
if(content.length()){
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment