mv update from script.php to a.php

This commit is contained in:
François 2022-02-17 17:28:04 +01:00
parent 9c61fd740c
commit bf06a130f6
2 changed files with 6 additions and 7 deletions

View File

@ -106,7 +106,7 @@ mkdir -p "${REP_PIECE_JOINTE}/"
# Etape de rafraichissement des anciens fichiers inclus # Etape de rafraichissement des anciens fichiers inclus
echo "time: ${DATE_TEMPS}" > "${ARCHIVE_CONTENT}" echo "time: ${DATE_TEMPS}" > "${ARCHIVE_CONTENT}"
[ -n "${TRACK}" ] && echo "src: ${MAIL_SOURCE}" >> "${ARCHIVE_CONTENT}" [ -n "${TRACK}" ] && echo "sender: ${MAIL_SOURCE}" >> "${ARCHIVE_CONTENT}"
LOG_FIC "${SHRINK_CMD} -u \"${INSPECT_DIR}/in.$$\" 2>> \"${FIC_LOG}\" > \"${OLD_LINKS}\"" LOG_FIC "${SHRINK_CMD} -u \"${INSPECT_DIR}/in.$$\" 2>> \"${FIC_LOG}\" > \"${OLD_LINKS}\""
"${SHRINK_CMD}" -u "${INSPECT_DIR}/in.$$" 2>> "${FIC_LOG}" > "${OLD_LINKS}" "${SHRINK_CMD}" -u "${INSPECT_DIR}/in.$$" 2>> "${FIC_LOG}" > "${OLD_LINKS}"

View File

@ -122,8 +122,7 @@ main (int argc, char** argv) {
contentType, contentType,
attachName, attachName,
urlBase ("http://file.kaz.bzh"), urlBase ("http://file.kaz.bzh"),
apiPage ("/script.php"), uploadPage ("/a.php"),
downloadPage ("/f.php"),
updatePage ("/a.php"), updatePage ("/a.php"),
minimumAvailability ("month"), minimumAvailability ("month"),
proxy; proxy;
@ -145,8 +144,8 @@ main (int argc, char** argv) {
("useTheForceLuke", bool_switch (&useTheForceLuke), "display hidded options") ("useTheForceLuke", bool_switch (&useTheForceLuke), "display hidded options")
("debug,g", bool_switch (&debugFlag), "debug mode") ("debug,g", bool_switch (&debugFlag), "debug mode")
("proxy,p", value<string> (&proxy)->default_value (proxy), "set proxy (proxy-host.org:8080)") ("proxy,p", value<string> (&proxy)->default_value (proxy), "set proxy (proxy-host.org:8080)")
("uploadPage,u", value<string> (&apiPage)->default_value (apiPage), "upload page") ("uploadPage,u", value<string> (&uploadPage)->default_value (uploadPage), "upload page")
("downloadPage,d", value<string> (&downloadPage)->default_value (downloadPage), "download page") ("updatePage,t", value<string> (&updatePage)->default_value (updatePage), "update page")
; ;
options_description cmd ("All options"); options_description cmd ("All options");
@ -221,8 +220,8 @@ main (int argc, char** argv) {
switch (jirCmd) { switch (jirCmd) {
case SEND: { case SEND: {
LOG ("SEND: " << (urlBase+apiPage)); LOG ("SEND: " << (urlBase+uploadPage));
curl_easy_setopt (easyhandle, CURLOPT_URL, (urlBase+apiPage).c_str ()); curl_easy_setopt (easyhandle, CURLOPT_URL, (urlBase+uploadPage).c_str ());
LOG ("maxUploadSize: " << maxUploadSize); LOG ("maxUploadSize: " << maxUploadSize);
long uploadsize = (size_t) maxUploadSize; long uploadsize = (size_t) maxUploadSize;