]> git.armaanb.net Git - asd-repo.git/commitdiff
kiss-serv: updates, bugfixes
authorArmaan Bhojwani <me@armaanb.net>
Wed, 31 Mar 2021 16:11:35 +0000 (12:11 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Wed, 31 Mar 2021 16:11:35 +0000 (12:11 -0400)
kiss-serv/checksums
kiss-serv/files/kiss-send-build
kiss-serv/files/kiss-serv
kiss-serv/version

index 22dd18ba82050a47654b1794895ec679a7cfff1c..db613dba5e15cba465aaad76d431987470b53daf 100644 (file)
@@ -1,2 +1,2 @@
-ab642b01282ce92aba462be2a579adb4691dc7c316ced87b7af55b928d6ea381
-0473fcb2d926b00521761ee2ead683c30778a44017ff0fb1895d31dd91ef51eb
+fe87e9a3752c9c742eb1e0f5073e2be7861410d9dbec58d5601777d81047fc44
+ccfdf68a788c84430fab48e4e2f7a9a3dda96763ead54ce3d69e78e6e2698cad
index f819dc01459c07ffab7c7bc5f92c62a5d4161e01..4e650e7d660377263908f381e7d67b08c56a5dfe 100755 (executable)
@@ -5,22 +5,23 @@ usage() {
 build KISS packages on a remote server
 
 Options:
-  -h, --help    show this help message
+  -h, --help        show this help message
 
 Subcommands:
   build [package]   initiate a remote build
   status            get current remote status
+  status [package]  get current remote status of a package
   get [package]     receive a built package
 
 Configuration:
   Done via environment variables
 
-  $KISS_SERV_HOST    remote host to connect to
-                       (defaults to localhost)
-  $KISS_SERV_USER    remote host to connect to
-                       (defaults to $(whoami))
-  $KISS_SERV_PORT    remote port to connect to
-                       (defaults to 22)'
+  $KISS_SERV_HOST   remote host to connect to
+                      (defaults to localhost)
+  $KISS_SERV_USER   remote host to connect to
+                      (defaults to $(whoami))
+  $KISS_SERV_PORT   remote port to connect to
+                      (defaults to 22)'
 }
 
 parse_err() {
@@ -57,7 +58,7 @@ while [ "$1" != "" ]; do
       sshexec "$@"
       ;;
     get)
-      get "$@"
+      "$1" "$@"
       ;;
     *)
       parse_err "ERROR: unknown option $1 \n" usage
index e9f753f6122175967038d1a88bd4aa4bb072b055..f760a54a7dedc01dc596aa7ec43319aae318e331 100755 (executable)
@@ -11,16 +11,20 @@ parse_err() {
 }
 
 build() {
-  nohup sh -c "yes | kiss build $2" &
+  nohup env KISS_PROMPT=0 kiss build "$2" 2>&1 > ~/.cache/kiss/logs/serv-"$2" &
   exit
 }
 
 status() {
-  echo "built packages:"
-  ls -1 ~/.cache/kiss/bin
-  echo "\nrunning kiss proceses:"
-  pgrep -fa kiss
-  exit
+  if [ -z "$2" ]; then
+    echo "built packages:"
+    ls -1 ~/.cache/kiss/bin
+    echo "\nrunning kiss proceses:"
+    pgrep -fa kiss
+    exit
+  else
+    tail -f "$HOME/.cache/kiss/logs/serv-$2"
+  fi
 }
 
 sshcmd="ssh -p ${KISS_SERV_PORT:-22} ${KISS_SERV_HOST:-localhost}"
index 4d544ed8d7a7e3bd0d6597e19f888827dd72c39b..d758a95f7b6fc06a9c14c6360eef5ddd023d91b2 100644 (file)
@@ -1 +1 @@
-0.0.0 1
+0.0.1 1