Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
a6c65f30
Commit
a6c65f30
authored
Jan 26, 2017
by
Robert Bailey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When calling chown, use : instead of . to separate the user and
group for cross platform compatibility.
parent
5b75980c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common.sh
build/common.sh
+2
-2
util.sh
cluster/rackspace/util.sh
+1
-1
No files found.
build/common.sh
View file @
a6c65f30
...
@@ -411,7 +411,7 @@ function kube::build::clean() {
...
@@ -411,7 +411,7 @@ function kube::build::clean() {
function
kube::build::build_image
()
{
function
kube::build::build_image
()
{
mkdir
-p
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
"
mkdir
-p
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
"
# Make sure the context directory owned by the right user for syncing sources to container.
# Make sure the context directory owned by the right user for syncing sources to container.
chown
-R
${
USER_ID
}
.
${
GROUP_ID
}
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
"
chown
-R
${
USER_ID
}
:
${
GROUP_ID
}
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
"
cp
/etc/localtime
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
/"
cp
/etc/localtime
"
${
LOCAL_OUTPUT_BUILD_CONTEXT
}
/"
...
@@ -499,7 +499,7 @@ function kube::build::ensure_data_container() {
...
@@ -499,7 +499,7 @@ function kube::build::ensure_data_container() {
--name
"
${
KUBE_DATA_CONTAINER_NAME
}
"
--name
"
${
KUBE_DATA_CONTAINER_NAME
}
"
--hostname
"
${
HOSTNAME
}
"
--hostname
"
${
HOSTNAME
}
"
"
${
KUBE_BUILD_IMAGE
}
"
"
${
KUBE_BUILD_IMAGE
}
"
chown
-R
${
USER_ID
}
.
${
GROUP_ID
}
chown
-R
${
USER_ID
}
:
${
GROUP_ID
}
"
${
REMOTE_ROOT
}
"
"
${
REMOTE_ROOT
}
"
/usr/local/go/pkg/
/usr/local/go/pkg/
)
)
...
...
cluster/rackspace/util.sh
View file @
a6c65f30
...
@@ -298,7 +298,7 @@ kube-up() {
...
@@ -298,7 +298,7 @@ kube-up() {
$(
sleep
2
)
$(
sleep
2
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo
/usr/bin/mkdir
-p
/var/lib/kube-apiserver
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo
/usr/bin/mkdir
-p
/var/lib/kube-apiserver
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo mv
/home/core/known_tokens.csv /var/lib/kube-apiserver/known_tokens.csv
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo mv
/home/core/known_tokens.csv /var/lib/kube-apiserver/known_tokens.csv
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo chown
root
.
root /var/lib/kube-apiserver/known_tokens.csv
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo chown
root
:
root /var/lib/kube-apiserver/known_tokens.csv
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo
systemctl restart kube-apiserver
)
$(
ssh
-o
StrictHostKeyChecking
=
no
-i
~/.ssh/
${
SSH_KEY_NAME
}
core@
${
KUBE_MASTER_IP
}
sudo
systemctl restart kube-apiserver
)
FAIL
=
0
FAIL
=
0
...
...
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