Small changes

This commit is contained in:
Framawiki 2017-05-05 19:20:34 +02:00 committed by Petr Bena
parent 950094775c
commit 885c4f441c
2 changed files with 6 additions and 6 deletions

View File

@ -31,10 +31,10 @@ Checkout this repository
cd stikkit cd stikkit
cmake . cmake .
make make
make install sudo make install
``` ```
NOTE: you need to have libcurl-dev installed in your system NOTE: you need to have `libcurl-dev` installed in your system
Usage Usage
===== =====
@ -53,9 +53,9 @@ The url parameter can be stored to configuration file (stikkit will ask you in c
Configuration Configuration
===== =====
The default configuration pulls the URL from /etc/stikkit/url - however, the better approach is to create your own config directory. The stikkit software will look for ".stikkit" in your home directory. The default configuration pulls the URL from `/etc/stikkit/url` - however, the better approach is to create your own config directory.
Within this directory, there are a few key files worth creating. The stikkit software will look for `.stikkit` in your home directory. Within this directory, there are a few key files worth creating.
- *url* - Contains your base installation URL for stikked - *url* - Contains your base installation URL for stikked
- *apikey* - If your stikked installation requires an API key, save it in here - *apikey* - If your stikked installation requires an API key, save it in here
@ -68,4 +68,4 @@ Tips
Do you have a server and want to setup default pastebin site for all users in system? Do you have a server and want to setup default pastebin site for all users in system?
Create /etc/stikkit/url which contains the url of default pastebin site. Users will be able to override it, but by default everyone on system will use this Create `/etc/stikkit/url` which contains the url of default pastebin site. Users will be able to override it, but by default everyone on system will use this

View File

@ -134,7 +134,7 @@ int main(int argc, char *argv[])
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post.c_str()); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post.c_str());
curl_easy_setopt(curl, CURLOPT_USERAGENT, "stikkit"); curl_easy_setopt(curl, CURLOPT_USERAGENT, "stikkit");
/* Perform the request, res will get the return code */ /* Perform the request, res will get the return HTTP code */
res = curl_easy_perform(curl); res = curl_easy_perform(curl);
/* Check for errors */ /* Check for errors */
if(res != CURLE_OK) if(res != CURLE_OK)