Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cc-node
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
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
Mirror
cc-node
Commits
7741feb5
Commit
7741feb5
authored
14 years ago
by
Thibault VINCENT
Browse files
Options
Downloads
Patches
Plain Diff
fix wrote python code in shell script
parent
51b89674
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian/postinst
+2
-2
2 additions, 2 deletions
debian/postinst
with
2 additions
and
2 deletions
debian/postinst
+
2
−
2
View file @
7741feb5
...
...
@@ -8,13 +8,13 @@ if [ -f "$CONF" ]; then
# replace login by hostname if unset
if
grep
'\$\$LOGIN\$\$'
"
$CONF
"
>
/dev/null
;
then
login
=
$(
hostname
)
print
"*** CC-Node login :
${
login
}
"
echo
"*** CC-Node login :
${
login
}
"
sed
-e
"s/
\\\$\\\$
LOGIN
\\\$\\\$
/
${
login
}
/g"
-i
"
$CONF
"
fi
# generate a random password if unset
if
grep
'\$\$PASSWORD\$\$'
"
$CONF
"
>
/dev/null
;
then
password
=
$(
cat
/dev/urandom |
tr
-dc
A-Za-z0-9 |
head
-c
12
)
print
"*** CC-Node password :
${
password
}
"
echo
"*** CC-Node password :
${
password
}
"
sed
-e
"s/
\\\$\\\$
PASSWORD
\\\$\\\$
/
${
password
}
/g"
\
-i
"
$CONF
"
fi
...
...
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