From 363f69f9d39fb752529303b5f2e26c90509787cb Mon Sep 17 00:00:00 2001
From: Thiago Abdo <tja14@inf.ufpr.br>
Date: Tue, 1 Mar 2016 10:31:10 -0300
Subject: [PATCH] Change configs location

Signed-off-by: Thiago Abdo <tja14@inf.ufpr.br>
---
 usb_drive/insert_data.sh    | 4 ++--
 usb_drive/local_accounts.sh | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/usb_drive/insert_data.sh b/usb_drive/insert_data.sh
index 1c34735..ca02f0a 100755
--- a/usb_drive/insert_data.sh
+++ b/usb_drive/insert_data.sh
@@ -36,7 +36,7 @@ prepare_usb () {
     fi
 
     # checks if usb has an openslx config
-    if [ -e "$mountpath/Openslx/config" ]; then
+    if [ -e "$mountpath/Openslx/.config" ]; then
         echo "$0: /dev/$dev is an openslx ready drive"
     else
         echo "$0: /dev/$dev is not ready to be used as an openslx drive"
@@ -58,7 +58,7 @@ prepare_usb "$dev" #returns at $mountpath
 echo "$0: an openslx ready drive is mounted at: $mountpath"
 
 unset IFS
-users=$(cat "$mountpath/Openslx/config");
+users=$(cat "$mountpath/Openslx/.config");
 if [ -z "$users" ]; then
     echo "$0: $dev has an empty config file"
     exit 3 # stops openslx users_pendrive execution for this dev
diff --git a/usb_drive/local_accounts.sh b/usb_drive/local_accounts.sh
index 3c3864c..842fef5 100755
--- a/usb_drive/local_accounts.sh
+++ b/usb_drive/local_accounts.sh
@@ -84,12 +84,12 @@ for line in $SLX_GROUPS; do
 done
 
 # instanciates the configuration file
-if [ ! -e /home/openslx/localaccounts/config ]; then
+if [ ! -e /home/openslx/localaccounts/.config ]; then
     echo $0": Configuration of local users doesn't exist, creating a blank one"
-    > /home/openslx/localaccounts/config
+    > /home/openslx/localaccounts/.config
 fi
 unset IFS
-users=$(cat /home/openslx/localaccounts/config);
+users=$(cat /home/openslx/localaccounts/.config);
 set $users
 
 # parse config file until EOF
-- 
GitLab