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
2071247a
Commit
2071247a
authored
Mar 06, 2020
by
Erik Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup prompt for vagrant centos
parent
c01fec0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
vagrant
scripts/provision/vagrant
+3
-4
No files found.
scripts/provision/vagrant
View file @
2071247a
...
@@ -42,9 +42,9 @@ rm -rf .cache/go-build || true
...
@@ -42,9 +42,9 @@ rm -rf .cache/go-build || true
# --- Set color prompt
# --- Set color prompt
sed
-i
's|:/bin/ash$|:/bin/bash|g'
/etc/passwd
sed
-i
's|:/bin/ash$|:/bin/bash|g'
/etc/passwd
cat
<<
EOF
>/etc/profile.d/color.sh
cat
<<
\
EOF
>/etc/profile.d/color.sh
alias ls='ls --color=auto'
alias ls='ls --color=auto'
export PS1='\033[31m[ \033[90m\D{%F
%T}\033[31m ]\n\[\033[36m\]\u\[\033[m\]🐮\[\033[32m\]\h
:\[\033[33;1m\]\w\[\033[m\]\
$
'
export PS1='\033[31m[ \033[90m\D{%F
🐮 %T}\033[31m ]\n\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[35m\]
:\[\033[33;1m\]\w\[\033[m\]\
$
'
EOF
EOF
# --- Setup install script from docker run commands
# --- Setup install script from docker run commands
...
@@ -79,7 +79,6 @@ download_go() {
...
@@ -79,7 +79,6 @@ download_go() {
curl
-sL
https://storage.googleapis.com/golang/go
${
goversion
}
.linux-
${
ARCH
}
.tar.gz |
tar
-xzf
-
-C
/usr/local
curl
-sL
https://storage.googleapis.com/golang/go
${
goversion
}
.linux-
${
ARCH
}
.tar.gz |
tar
-xzf
-
-C
/usr/local
}
}
# --- Utility function to download dqlite
# --- Utility function to download dqlite
download_dqlite
()
{
download_dqlite
()
{
dqliteURL
=
"https://github.com/
$(
grep
dqlite-build Dockerfile.dapper |
sed
-e
's/^.*--from=\([^ ]*\).*$/\1/'
-e
's|:|/releases/download/|'
)
/dqlite-
$ARCH
.tgz"
dqliteURL
=
"https://github.com/
$(
grep
dqlite-build Dockerfile.dapper |
sed
-e
's/^.*--from=\([^ ]*\).*$/\1/'
-e
's|:|/releases/download/|'
)
/dqlite-
$ARCH
.tgz"
...
@@ -89,7 +88,7 @@ download_dqlite() {
...
@@ -89,7 +88,7 @@ download_dqlite() {
fi
fi
mkdir
-p
/usr/src/
mkdir
-p
/usr/src/
echo
"Downloading DQLITE from
$dqliteURL
"
echo
"Downloading DQLITE from
$dqliteURL
"
curl
-s
f
L
$dqliteURL
-o
/usr/src/dqlite.tgz
curl
-sL
$dqliteURL
-o
/usr/src/dqlite.tgz
}
}
# --- Run vagrant provision script if available
# --- Run vagrant provision script if available
...
...
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