Skip to content
Snippets Groups Projects
Verified Commit 32c7c30b authored by Recolic Keghart's avatar Recolic Keghart
Browse files

bug fix

parent 41cd7d2d
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,12 @@ MAINTAINER root@recolic.net ...@@ -4,8 +4,12 @@ MAINTAINER root@recolic.net
RUN pacman -Sy RUN pacman -Sy
RUN pacman -S --noconfirm curl netcat iputils grep RUN pacman -S --noconfirm curl netcat iputils grep
RUN pacman -S --noconfirm python
COPY do.bash / RUN mkdir /app
RUN chmod +x /do.bash COPY . /app
CMD ["/app/datafile.py.gen.d.py"]
# docker run -v /var/www/html/status.html:/app/status.html my_docker_image
# datafile for status.html generator. # datafile for status.html generator.
current_status = [ ("Reverse Proxy","green"),("Drive","green") ] current_status = [ ("Reverse Proxy","green"),("Drive","green"),("ShadowSocks taiwan","green"),("ShadowSocks US-1","green"),("ShadowSocks US-5","green"),("ShadowSocks US-6","green"),("OpenVPN taiwan","green"),("Main Website","green"),("Mail Server","green"),("Teachermate Web Seller","green"),("Git","green"),("ZhiXiang Fucker","green"),("Minecraft Server","green"),("httpdb","green"),("DDNS WuHan","green"),("DDNS USA","green"),("Download Site","green") ]
saved_events = [ ] saved_events = [ ]
past_day = [ (True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")) ] past_day = [ (True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")),(True, ("2019","May","14","None","")) ]
...@@ -47,7 +47,7 @@ def save_status(): ...@@ -47,7 +47,7 @@ def save_status():
curr_time = datetime.datetime.utcnow() curr_time = datetime.datetime.utcnow()
for i in range(14): for i in range(14):
# previous 2 weeks. # previous 2 weeks.
the_date = curr_time - datetime.timedelta(days=1) the_date = curr_time - datetime.timedelta(days=i)
the_month, the_day, the_year = the_date.strftime("%b"),the_date.strftime("%d"),the_date.strftime("%Y") the_month, the_day, the_year = the_date.strftime("%b"),the_date.strftime("%d"),the_date.strftime("%Y")
msgs = [] msgs = []
......
...@@ -2,7 +2,22 @@ ...@@ -2,7 +2,22 @@
tests = [ tests = [
('./do.bash rproxy', 'Reverse Proxy'), ('./do.bash rproxy', 'Reverse Proxy'),
('./do.bash drive', 'Drive'), ('./do.bash drive', 'Drive'),
('./do.bash ss-tw', 'ShadowSocks taiwan'),
('./do.bash ss-us1', 'ShadowSocks US-1'),
('./do.bash ss-us5', 'ShadowSocks US-5'),
('./do.bash ss-us6', 'ShadowSocks US-6'),
('./do.bash ovpn-tw', 'OpenVPN taiwan'),
('./do.bash www', 'Main Website'),
('./do.bash mail', 'Mail Server'),
('./do.bash tm', 'Teachermate Web Seller'),
('./do.bash git', 'Git'),
('./do.bash zhixiang', 'ZhiXiang Fucker'),
('./do.bash mc', 'Minecraft Server'),
('./do.bash push-httpdb-agent', 'httpdb'),
('./do.bash ddns-wuhan', 'DDNS WuHan'),
('./do.bash ddns-us', 'DDNS USA'),
('./do.bash dl', 'Download Site'),
] ]
test_interval = 20 * 60 # 20min test_interval = 20 * 60 # 20min
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment