fixes
This commit is contained in:
parent
2a8e020d8e
commit
9171e26685
7
0_nfs.sh
7
0_nfs.sh
|
@ -1,7 +1,9 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
apt update -y
|
||||
apt -y install nfs-common
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt update -qy
|
||||
apt -qy install nfs-common
|
||||
|
||||
function create_dir() {
|
||||
echo "creating directory: $1"
|
||||
|
@ -23,4 +25,5 @@ function install_nfs_mnt() {
|
|||
|
||||
grep '/var/lib/docker/volumes' >/dev/null || install_nfs_mnt
|
||||
|
||||
echo ">>>>>>>>>> mounting"
|
||||
mount -a
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#!/bin/bash
|
||||
|
||||
grep jenkins /etc/group >/dev/null 2>&1 || sroupadd jenkin
|
||||
grep jenkins /etc/passwd >/dev/null 2>&1 || useradd jenkins -g jenkins -G docker -m
|
||||
grep jenkins /etc/group >/dev/null 2>&1 || groupadd jenkin && echo 'jenkins group exists'
|
||||
grep jenkins /etc/passwd >/dev/null 2>&1 || useradd jenkins -g jenkins -G docker -m && echo 'jenkins user exists'
|
||||
|
||||
[[ ! -d '/home/jenkins/.ssh' ]] && mkdir /home/jenkins/.ssh
|
||||
[[ ! -d '/home/jenkins/.ssh' ]] && mkdir /home/jenkins/.ssh || echo '/home/jenkins/.ssh exists'
|
||||
|
||||
grep 'jenkins@localhost.thelinuxpro.net' >/dev/null 2>&1 || echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDZzcq/InUD3bbrVC+7HzIjhaiz8Nc21ZO1Wu6OsVijs jenkins@localhost.thelinuxpro.net' >> /home/jenkins/.ssh/authorized_keys
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
apt update -y
|
||||
apt -y upgrade
|
||||
apt update -qy
|
||||
apt -qy upgrade
|
||||
|
|
Loading…
Reference in New Issue