iGet hostname with uname - drist - a remote deployment tool Err bitreich.org 70
hgit clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ URL:git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/ bitreich.org 70
1Log /scm/drist/log.gph bitreich.org 70
1Files /scm/drist/files.gph bitreich.org 70
1Refs /scm/drist/refs.gph bitreich.org 70
1Tags /scm/drist/tag bitreich.org 70
1README /scm/drist/file/README.gph bitreich.org 70
1LICENSE /scm/drist/file/LICENSE.gph bitreich.org 70
i--- Err bitreich.org 70
1commit e94124436c123815f7ff2ce8117fd7f7392b8df7 /scm/drist/commit/e94124436c123815f7ff2ce8117fd7f7392b8df7.gph bitreich.org 70
1parent 77f287e8d9728d236de855be1ae0f12e99f547a8 /scm/drist/commit/77f287e8d9728d236de855be1ae0f12e99f547a8.gph bitreich.org 70
hAuthor: Solene Rapenne <solene@perso.pw> URL:mailto:solene@perso.pw bitreich.org 70
iDate: Tue, 17 Jul 2018 14:21:33 +0200 Err bitreich.org 70
i Err bitreich.org 70
iGet hostname with uname Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M drist | 2 +- Err bitreich.org 70
i M drist.1 | 10 +++++----- Err bitreich.org 70
i Err bitreich.org 70
i2 files changed, 6 insertions(+), 6 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/drist b/drist /scm/drist/file/drist.gph bitreich.org 70
i@@ -5,7 +5,7 @@ then Err bitreich.org 70
i echo "You should pass a server as a parameter" Err bitreich.org 70
i exit 1 Err bitreich.org 70
i else Err bitreich.org 70
i- HOSTNAME=$(ssh "$1" hostname -s) Err bitreich.org 70
i+ HOSTNAME=$(ssh "$1" "uname -n") Err bitreich.org 70
i if [ "$?" -ne 0 ] Err bitreich.org 70
i then Err bitreich.org 70
i echo "Error while ssh ${1}" Err bitreich.org 70
1diff --git a/drist.1 b/drist.1 /scm/drist/file/drist.1.gph bitreich.org 70
i@@ -15,7 +15,7 @@ is a tool to configure remote servers using Err bitreich.org 70
i and Err bitreich.org 70
i .Xr rsync 1 . Err bitreich.org 70
i .Nm Err bitreich.org 70
i-has been designed to be simple, so it may not offers features you want. Err bitreich.org 70
i+has been designed to be simple, so it may not offer features you want. Err bitreich.org 70
i Err bitreich.org 70
i When you run Err bitreich.org 70
i .Nm Err bitreich.org 70
i@@ -32,7 +32,7 @@ The second directory is Err bitreich.org 70
i with Err bitreich.org 70
i .Ar servername Err bitreich.org 70
i being the result of the command Err bitreich.org 70
i-.Ql hostname -s Err bitreich.org 70
i+.Ql uname -n Err bitreich.org 70
i on the remote server. The content of this folder will be copied on the remote server Err bitreich.org 70
i .Ar server Err bitreich.org 70
i from the root filesystem /. This folder is useful if you need to add some files only Err bitreich.org 70
i@@ -45,16 +45,16 @@ will look at two files in the current working directory. Err bitreich.org 70
i The first file is Err bitreich.org 70
i .Ar script Err bitreich.org 70
i and will be copied on the remote server and then executed and deleted after execution Err bitreich.org 70
i-(shall the script success or fail). Err bitreich.org 70
i+(shall the script succeed or fail). Err bitreich.org 70
i Err bitreich.org 70
i The second file is Err bitreich.org 70
i .Ar script-hostname Err bitreich.org 70
i with Err bitreich.org 70
i .Ar servername Err bitreich.org 70
i being the result of the command Err bitreich.org 70
i-.Ql hostname -s Err bitreich.org 70
i+.Ql uname -n Err bitreich.org 70
i , if it exists, it will be copied on the remote server and then executed and deleted after execution Err bitreich.org 70
i-(shall the script success or fail). This is useful if you need to run commands on a particular Err bitreich.org 70
i+(shall the script succeed or fail). This is useful if you need to run commands on a particular Err bitreich.org 70
i servers. Err bitreich.org 70
i Err bitreich.org 70
i I recommend to write small "modules" installing required packages for a task and providing Err bitreich.org 70
.
Response:
text/plain