Commit e984af0d authored by fleischmann's avatar fleischmann
Browse files

Remove service Actions and add Delete URL



This commit add the deleteurl action which is
written in python. The service action were
removed as they were not working properly.

Signed-off-by: default avatarDominik Fleischmann <dominik.fleischmann@canonical.com>
parent ab36046d
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
addurl:
    description: "Add squid config"
    description: "Add allowed URL to squid config"
    params:
        url:
            description: "URL that will be allowed"
            type: string
            default: ""
start:
    description: "Start squid service"
restart:
    description: "Retart squid service"
stop:
    description: "Stop squid service"
deleteurl:
    description: "Delete allowed URL squid config"
    params:
        url:
            description: "URL that will stop to be allowed"
            type: string
            default: ""
+0 −2
Original line number Diff line number Diff line
#!/bin/bash
service squid restart
+0 −2
Original line number Diff line number Diff line
#!/bin/bash
service squid start
+0 −2
Original line number Diff line number Diff line
#!/bin/bash
service squid stop
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ options:
    image:
        type: string
        description: 'Docker image for squid'
        default: 'sameersbn/squid:latest'
        default: 'domfleischmann/squid-python'
    port:
        type: int
        description: 'Port'
Loading