Skip to content

Commit

Permalink
Issue NagiosEnterprises#685 - Add Ability To Set A Comment To Expire
Browse files Browse the repository at this point in the history
Small clean up for docker and delete macro.
  • Loading branch information
iwhite-nagios committed Feb 11, 2020
1 parent 95b9eb3 commit 97805e4
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 29 deletions.
10 changes: 0 additions & 10 deletions cgi/cgiutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,16 +1009,6 @@ void get_time_string(time_t *raw_time, char *buffer, int buffer_length, int type
/* expiration date/time for HTTP headers */
else if(type == HTTP_DATE_TIME)
snprintf(buffer, buffer_length, "%s, %02d %s %d %02d:%02d:%02d GMT", weekdays[tm_ptr->tm_wday], day, months[tm_ptr->tm_mon], year, hour, minute, second);
else if (type == EXPIRES_DATE_TIME)
snprintf(buffer,
buffer_length,
"%04d-%02d-%02dT%02d:%02d:%02d",
tm_ptr->tm_year + 1900,
tm_ptr->tm_mon + 1,
tm_ptr->tm_mday,
tm_ptr->tm_hour,
tm_ptr->tm_min,
tm_ptr->tm_sec);

/* short time */
else
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM vim
LABEL author="Isaac A. White <iwhite@nagios.com>"

WORKDIR /var/www/html/
COPY .vimrc /root/.vimrc
COPY .vim /root/
COPY ../.vimrc /root/.vimrc
COPY ../.vim /root/

# WORKDIR /var/www/html/plugins
# RUN ./tools/setup && ./configure
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions docker/exec.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

docker exec -it ncen /bin/bash

6 changes: 6 additions & 0 deletions docker/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
docker exec -w /var/www/html/ -it ncen ./configure
docker exec -w /var/www/html/ -it ncen make all install
./plugins.sh


6 changes: 6 additions & 0 deletions docker/plugins.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
docker exec -w /var/www/html/plugins -it ncen ./tools/setup
docker exec -w /var/www/html/plugins -it ncen ./configure
docker exec -w /var/www/html/plugins -it ncen make
docker exec -w /var/www/html/plugins -it ncen make install

4 changes: 0 additions & 4 deletions exec.sh

This file was deleted.

6 changes: 0 additions & 6 deletions install.sh

This file was deleted.

2 changes: 1 addition & 1 deletion plugins
Submodule plugins updated from 4c3812 to a2bc59
6 changes: 0 additions & 6 deletions plugins.sh

This file was deleted.

0 comments on commit 97805e4

Please sign in to comment.