Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Primtux-Eole
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Grenoble
Primtux-Eole
Commits
be529ca1
Unverified
Commit
be529ca1
authored
Dec 18, 2018
by
David Beniamine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get cifs secrets from server at post_install
parent
3da44a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
do_postinstall.sh
do_postinstall.sh
+10
-0
No files found.
do_postinstall.sh
View file @
be529ca1
...
...
@@ -31,6 +31,7 @@ sed -i -e 's/lametro.fr/perdu.com/' /etc/conky/conky.conf
echo
"Récupération de la clef ssh du serveur"
tftp ecole-dc
<<
'
EOF
'
get id_rsa.pub
get secret.tgz
quit
EOF
sshdir
=
"/root/.ssh/"
...
...
@@ -38,6 +39,15 @@ mkdir -p $sshdir
mv
id_rsa.pub
$sshdir
/authorized_keys
chown
-R
root:root
$sshdir
mkdir
-p
/etc/cifs/secrets
mv
secret.tgz
cd
/etc/cifs/secrets
tar
xvzf secret.tgz
rm
secret.tgz
chown
-R
root:root /etc/cifs
cd
hostn
=
`
hostname
`
echo
"Veuillez entrer le numéro de poste"
read
numero
...
...
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