Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
srvpro
Commits
ba709cfd
Commit
ba709cfd
authored
Aug 21, 2018
by
nanahira
Committed by
GitHub
Aug 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
10996368
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
data/entrypoint.sh
data/entrypoint.sh
+1
-1
No files found.
data/entrypoint.sh
View file @
ba709cfd
#!/bin/bash
if
[
-n
"
$authorized_keys
"
]
&&
[
!
-f
/root/.ssh/authorized_keys
]
;
then
printenv
authorized_keys
>
/root/.ssh/authorized_keys
;
fi
if
[
-n
"
$authorized_keys
"
]
&&
[
!
-f
/root/.ssh/authorized_keys
]
;
then
mkdir
/root/.ssh
;
printenv
authorized_keys
>
/root/.ssh/authorized_keys
;
chmod
600
/root/.ssh/authorized_keys
;
fi
if
[
-n
"
$password
"
]
&&
passwd
--status
|
grep
-q
'L'
;
then
echo
"root:
$password
"
| chpasswd
;
fi
unset
authorized_keys
unset
password
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment