Store BA_MODE during config file writes
[blkdevalias.git] / blkdevalias
index e7a9688..7b81f08 100755 (executable)
@@ -29,6 +29,7 @@ declare -A PARTMAP
 #BA_DEBUG="yes"
 BA_DEFAULT_USER="oracle"
 BA_DEFAULT_GROUP="oracle"
+BA_DEFAULT_MODE="0660"
 BA_CONF_PATH="/etc/blkdevalias"
 BA_DEV_PATH="oracleasm/disks"
 BA_MAP_PATH="${BA_CONF_PATH}/blkdevalias.map"
@@ -326,7 +327,8 @@ EOF
     ba_store_conf_header $_TMP_CONF
     echo "BA_DEV_PATH=\"$BA_DEV_PATH\"" >> $_TMP_CONF
     echo "BA_USER=\"$BA_USER\"" >> $_TMP_CONF
-    _print "BA_GROUP=\"$BA_GROUP\"" >> $_TMP_CONF
+    echo "BA_GROUP=\"$BA_GROUP\"" >> $_TMP_CONF
+    echo "BA_MODE=\"$BA_MODE\"" >> $_TMP_CONF
     mv $_TMP_CONF $BA_CONF
     if [ "$?" != 0 ]; then
         _error "could not create configuration file $BA_CONF"