From 05f2d03ad9da4020ad463be28bd6de4c973fbbbb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 30 Aug 2019 13:28:14 +0200 Subject: use shorter url for my repository --- README.md | 6 +++--- global-config | 2 +- initial-commands | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 97b6c49..4cd614b 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ download the certificates. If you intend to download the scripts from a different location (for example from github.com) install the corresponding certificate chain. - [admin@MikroTik] > / tool fetch "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/certs/Let%27s%20Encrypt%20Authority%20X3.pem" dst-path="letsencrypt.pem" + [admin@MikroTik] > / tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/Let%27s%20Encrypt%20Authority%20X3.pem" dst-path="letsencrypt.pem" status: finished downloaded: 3KiBC-z pause] total: 3KiB @@ -85,7 +85,7 @@ crap and a good example how to *not* do it. Now let's download the main scripts and add them in configuration on the fly. - [admin@MikroTik] > :foreach Script in={ "global-config"; "global-functions"; "script-updates" } do={ / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit.cgi/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); } + [admin@MikroTik] > :foreach Script in={ "global-config"; "global-functions"; "script-updates" } do={ / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); } The configuration needs to be tweaked for your needs. Make sure not to send your mails to `mail@example.com`! @@ -142,7 +142,7 @@ URL: [GitHub.com](https://github.com/eworm-de/routeros-scripts#routeros-scripts) Mirror: -[eworm.de](https://git.eworm.de/cgit.cgi/routeros-scripts/about/) +[eworm.de](https://git.eworm.de/cgit/routeros-scripts/about/) [GitLab.com](https://gitlab.com/eworm-de/routeros-scripts#routeros-scripts) --- diff --git a/global-config b/global-config index e8fd04d..2559181 100644 --- a/global-config +++ b/global-config @@ -100,7 +100,7 @@ # Enable this to fetch scripts from given url. :global ScriptUpdatesFetch true; -:global ScriptUpdatesBaseUrl "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/"; +:global ScriptUpdatesBaseUrl "https://git.eworm.de/cgit/routeros-scripts/plain/"; #:global ScriptUpdatesBaseUrl "https://raw.githubusercontent.com/eworm-de/routeros-scripts/master/"; #:global ScriptUpdatesBaseUrl "https://gitlab.com/eworm-de/routeros-scripts/raw/master/"; :global ScriptUpdatesUrlSuffix ""; diff --git a/initial-commands b/initial-commands index c829875..f8dd825 100644 --- a/initial-commands +++ b/initial-commands @@ -3,7 +3,7 @@ # Copyright (c) 2018-2019 Christian Hesse { - / tool fetch "https://git.eworm.de/cgit.cgi/routeros-scripts/plain/certs/Let%27s%20Encrypt%20Authority%20X3.pem" dst-path="letsencrypt.pem"; + / tool fetch "https://git.eworm.de/cgit/routeros-scripts/plain/certs/Let%27s%20Encrypt%20Authority%20X3.pem" dst-path="letsencrypt.pem"; :delay 1s; / certificate { import file-name=letsencrypt.pem passphrase=""; @@ -16,7 +16,7 @@ } / file remove "letsencrypt.pem"; :foreach Script in={ "global-config"; "global-functions"; "script-updates" } do={ - / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit.cgi/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); + / system script add name=$Script source=([ / tool fetch check-certificate=yes-without-crl ("https://git.eworm.de/cgit/routeros-scripts/plain/" . $Script) output=user as-value]->"data"); } / system script { run global-config; -- cgit v1.2.3-54-g00ecf