turn off f24 build
[infrastructure.git] / scripts / onelab-aliases.sh
index 2022138..abad15c 100755 (executable)
@@ -1,13 +1,10 @@
 #!/bin/bash
 
-# $Id$
-
-# to be run on the mail server at one-lab.org, to add aliases in that domain
+# to be run on the mail server at onelab.eu, to add aliases in that domain
 # Example:
 # new-alias.sh francois2.jan@orange-ftgroup.com
-# -> creates two aliases
-# francois2.jan@one-lab.org
-# francois2.jan.private@one-lab.org
+# -> creates one alias
+# francois2.jan@onelab.eu -> francois2.jan@orange-ftgroup.com
 
 COMMAND=$(basename $0)
 
@@ -28,12 +25,10 @@ function create () {
     echo "WARNING: $target skipped"
     continue
   fi
-  for suffix in "" ".private" ; do
-    aliasname=${namepart}${suffix}@one-lab.org
-    sqlcommand="insert into alias values ( '${aliasname}', '${target}' )"
-    echo "Sending $sqlcommand"
-    echo "$sqlcommand" | $SQL
-  done
+  aliasname=${namepart}@onelab.eu
+  sqlcommand="insert into alias values ( '${aliasname}', '${target}' )"
+  echo "Sending $sqlcommand"
+  echo "$sqlcommand" | $SQL
 
 }