[X2go-Commits] x2gothinclient.git - tmpfs (branch) updated: 75db9d5b6d390f677f892ab10e98c9ababaeef5e

X2go dev team git-admin at x2go.org
Wed Jun 15 22:53:01 CEST 2011


The branch, tmpfs has been updated
       via  75db9d5b6d390f677f892ab10e98c9ababaeef5e (commit)
      from  0dc9c37886f18d23ecab155c8b2035cf8797aa9f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 75db9d5b6d390f677f892ab10e98c9ababaeef5e
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Jun 15 22:53:39 2011 +0200

    X2go TCE management script have to run as root.

-----------------------------------------------------------------------

Summary of changes:
 debian/changelog                                   |    1 +
 x2gothinclientmanagement/bin/x2gothinclient_create |    5 +++++
 .../bin/x2gothinclient_preptftpboot                |    5 +++++
 x2gothinclientmanagement/bin/x2gothinclient_shell  |    5 +++++
 x2gothinclientmanagement/bin/x2gothinclient_update |    5 +++++
 .../bin/x2gothinclient_upgrade                     |    5 +++++
 6 files changed, 26 insertions(+), 0 deletions(-)

The diff of changes is:
diff --git a/debian/changelog b/debian/changelog
index ac8c441..aada42a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -18,6 +18,7 @@ x2gothinclient (1.0.1.3-0~x2go1) UNRELEASED; urgency=low
   * Add x2gothinclient_preptftpboot script.
   * Add man page for x2gothinclient_preptftpboot.
   * Do not run management script if there is a problem with the X2go TCE chroot.
+  * X2go TCE management script have to run as root.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Sat, 28 May 2011 12:04:34 +0200
 
diff --git a/x2gothinclientmanagement/bin/x2gothinclient_create b/x2gothinclientmanagement/bin/x2gothinclient_create
index 045b370..54eeb05 100755
--- a/x2gothinclientmanagement/bin/x2gothinclient_create
+++ b/x2gothinclientmanagement/bin/x2gothinclient_create
@@ -46,6 +46,11 @@ test -e "$TC_CHROOT" && {
     exit -1
 }
 
+[ "x$USER" == "xroot" ] || { 
+    echo "ERROR: X2go Thin Client management scripts have to run as super-user root."
+    exit -2
+}
+
 export LANG=C
 
 mkdir -p $TC_CONFIG
diff --git a/x2gothinclientmanagement/bin/x2gothinclient_preptftpboot b/x2gothinclientmanagement/bin/x2gothinclient_preptftpboot
index 1120723..956dc87 100755
--- a/x2gothinclientmanagement/bin/x2gothinclient_preptftpboot
+++ b/x2gothinclientmanagement/bin/x2gothinclient_preptftpboot
@@ -47,6 +47,11 @@ test -e "$TC_TFTP_BOOT/pxelinux.cfg" && {
     exit -1
 }
 
+[ "x$USER" == "xroot" ] || { 
+    echo "ERROR: X2go Thin Client management scripts have to run as super-user root."
+    exit -2
+}
+
 echo "Preparing PXE boot configuration for X2go TCE..."
 echo "------------------------------------------------"
 echo
diff --git a/x2gothinclientmanagement/bin/x2gothinclient_shell b/x2gothinclientmanagement/bin/x2gothinclient_shell
index ad69b2b..750c32e 100755
--- a/x2gothinclientmanagement/bin/x2gothinclient_shell
+++ b/x2gothinclientmanagement/bin/x2gothinclient_shell
@@ -40,6 +40,11 @@ test -e "$TC_CHROOT" || {
     exit -1
 }
 
+[ "x$USER" == "xroot" ] || { 
+    echo "ERROR: X2go Thin Client management scripts have to run as super-user root."
+    exit -2
+}
+
 cat > "$TC_CHROOT/x2go_tce_shell.sh" <<EOF
 #!/bin/bash
 mount /proc &> /dev/null
diff --git a/x2gothinclientmanagement/bin/x2gothinclient_update b/x2gothinclientmanagement/bin/x2gothinclient_update
index 905ffae..721e173 100755
--- a/x2gothinclientmanagement/bin/x2gothinclient_update
+++ b/x2gothinclientmanagement/bin/x2gothinclient_update
@@ -46,6 +46,11 @@ test -e "$TC_CONFIG" || {
     exit -1
 }
 
+[ "x$USER" == "xroot" ] || { 
+    echo "ERROR: X2go Thin Client management scripts have to run as super-user root."
+    exit -2
+}
+
 mkdir -p "$TC_CHROOT/etc/x2go"
 
 echo "Installing X2go TCE configuration into chroot environment..."
diff --git a/x2gothinclientmanagement/bin/x2gothinclient_upgrade b/x2gothinclientmanagement/bin/x2gothinclient_upgrade
index 61a8d98..36f03eb 100755
--- a/x2gothinclientmanagement/bin/x2gothinclient_upgrade
+++ b/x2gothinclientmanagement/bin/x2gothinclient_upgrade
@@ -39,6 +39,11 @@ test -e "$TC_CHROOT" || {
     exit -1
 }
 
+[ "x$USER" == "xroot" ] || { 
+    echo "ERROR: X2go Thin Client management scripts have to run as super-user root."
+    exit -2
+}
+
 cat > "$TC_CHROOT/x2go_tc_update.sh" <<EOF
 #!/bin/bash
 mount /proc &> /dev/null


hooks/post-receive
-- 
x2gothinclient.git (X2go Thin Client Environment)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2gothinclient.git" (X2go Thin Client Environment).




More information about the x2go-commits mailing list