Skip to content
Snippets Groups Projects
Commit 363f69f9 authored by Thiago Abdo's avatar Thiago Abdo
Browse files

Change configs location


Signed-off-by: default avatarThiago Abdo <tja14@inf.ufpr.br>
parent 76ef84f4
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment