diff --git a/usb_drive/insert_data.sh b/usb_drive/insert_data.sh index 1c347354f464d39892189c012d396a9c66824cdf..ca02f0a1619e5875adf41ee69b8d94cb93c13c2b 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 3c3864c8e0347c05ee04b4b88c637fe9c203a0b2..842fef53d56325e55f0633e18dd25cadd3bfb751 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