mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update docker-installer.sh
This commit is contained in:
parent
7a86c84db7
commit
fb585443c4
1 changed files with 4 additions and 3 deletions
|
@ -56,6 +56,7 @@ do
|
||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
[ ! -n "$repo_name" ] && exit 1
|
[ ! -n "$repo_name" ] && exit 1
|
||||||
|
|
||||||
install_tools(){
|
install_tools(){
|
||||||
|
@ -150,7 +151,7 @@ install_docker_compose(){
|
||||||
|
|
||||||
save_images(){
|
save_images(){
|
||||||
sudo rm -rf /tmp/docker-$repo_name
|
sudo rm -rf /tmp/docker-$repo_name
|
||||||
sudo git clone https://github.com/Websoft9/docker-$repo_name.git /tmp/docker-$repo_name
|
sudo git clone https://github.com/Websoft9/docker-$repo_name.git /tmp/docker-$repo_name || sudo git clone https://github.com.cnpmjs.org/Websoft9/docker-$repo_name.git /tmp/docker-$repo_name
|
||||||
sudo docker rmi `docker images -aq` -f &>/dev/null || true
|
sudo docker rmi `docker images -aq` -f &>/dev/null || true
|
||||||
|
|
||||||
# Rename compose and env file name
|
# Rename compose and env file name
|
||||||
|
@ -170,7 +171,7 @@ save_images(){
|
||||||
installation(){
|
installation(){
|
||||||
sudo rm -rf $install_dir
|
sudo rm -rf $install_dir
|
||||||
sudo mkdir -p $install_dir /credentials 1>/dev/null 2>&1 && cd $install_dir
|
sudo mkdir -p $install_dir /credentials 1>/dev/null 2>&1 && cd $install_dir
|
||||||
sudo git clone https://github.com/Websoft9/docker-$repo_name.git $install_dir
|
sudo git clone https://github.com/Websoft9/docker-$repo_name.git $install_dir || sudo git clone https://github.com.cnpmjs.org/Websoft9/docker-$repo_name.git $install_dir
|
||||||
|
|
||||||
# Rename compose and env file name
|
# Rename compose and env file name
|
||||||
cd $install_dir
|
cd $install_dir
|
||||||
|
|
Loading…
Reference in a new issue