Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
users-openslx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Harbor Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cdn
users-openslx
Commits
363f69f9
Commit
363f69f9
authored
9 years ago
by
Thiago Abdo
Browse files
Options
Downloads
Patches
Plain Diff
Change configs location
Signed-off-by:
Thiago Abdo
<
tja14@inf.ufpr.br
>
parent
76ef84f4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
usb_drive/insert_data.sh
+2
-2
2 additions, 2 deletions
usb_drive/insert_data.sh
usb_drive/local_accounts.sh
+3
-3
3 additions, 3 deletions
usb_drive/local_accounts.sh
with
5 additions
and
5 deletions
usb_drive/insert_data.sh
+
2
−
2
View file @
363f69f9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
usb_drive/local_accounts.sh
+
3
−
3
View file @
363f69f9
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment