mirror of
https://github.com/seriousm4x/UpSnap.git
synced 2026-03-31 06:24:09 -04:00
better cron cmd info
This commit is contained in:
@@ -12,7 +12,7 @@ RUN wget https://github.com/seriousm4x/UpSnap/releases/download/${VERSION}/UpSna
|
||||
|
||||
FROM alpine:3
|
||||
RUN apk update &&\
|
||||
apk add --no-cache tzdata ca-certificates nmap samba-common-tools &&\
|
||||
apk add --no-cache tzdata ca-certificates nmap samba-common-tools sshpass curl &&\
|
||||
rm -rf /var/cache/apk/*
|
||||
WORKDIR /app
|
||||
COPY --from=downloader /app/upsnap upsnap
|
||||
|
||||
@@ -340,16 +340,33 @@
|
||||
<div class="col-md-6 d-flex align-items-start flex-column">
|
||||
<div class="callout callout-info mb-auto">
|
||||
<h5>Optional:</h5>
|
||||
<p class="m-0">(1) Same cron syntax as for ping interval.</p>
|
||||
<p class="m-0">
|
||||
(2) Shell command to be executed. "net rpc", "sshpass" and "nmap" are available.
|
||||
(1) Read more about valid cron syntax on <a
|
||||
href="https://en.wikipedia.org/wiki/Cron"
|
||||
target="_blank"
|
||||
rel="noreferrer">wikipedia</a
|
||||
>
|
||||
or the package documentation
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
href="https://pkg.go.dev/github.com/robfig/cron"
|
||||
>pkg.go.dev/github.com/robfig/cron</a
|
||||
>
|
||||
</p>
|
||||
<p class="m-0">
|
||||
(2) Shell command to be executed. "net rpc", "sshpass" and "curl" are available.
|
||||
e.g.:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Windows: "net rpc shutdown -I 192.168.1.13 -U test%test"</li>
|
||||
<li>
|
||||
Linux: "sshpass -p your_password ssh -o 'StrictHostKeyChecking=no'
|
||||
user@hostname 'sudo poweroff'"
|
||||
Windows: <code>net rpc shutdown -I 192.168.1.13 -U "user%password"</code>
|
||||
</li>
|
||||
<li>
|
||||
Linux: <code
|
||||
>sshpass -p your_password ssh -o "StrictHostKeyChecking=no"
|
||||
user@hostname "sudo poweroff"</code
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
<p class="m-0">
|
||||
|
||||
@@ -226,7 +226,13 @@
|
||||
>.
|
||||
</p>
|
||||
<p class="m-0">
|
||||
Read more about valid cron syntax at <a
|
||||
Read more about valid cron syntax on <a
|
||||
href="https://en.wikipedia.org/wiki/Cron"
|
||||
target="_blank"
|
||||
rel="noreferrer">wikipedia</a
|
||||
>
|
||||
or the package documentation
|
||||
<a
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
href="https://pkg.go.dev/github.com/robfig/cron"
|
||||
|
||||
Reference in New Issue
Block a user