update
This commit is contained in:
parent
7ea4dd7325
commit
9e5c1f27f7
|
@ -25,7 +25,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
|
||||
# Create a private network, which allows host-only access to the machine
|
||||
# using a specific IP.
|
||||
config.vm.network :private_network, ip: "192.168.122.10"
|
||||
config.vm.network :private_network, ip: "10.8.8.10"
|
||||
|
||||
# Create a public network, which generally matched to bridged network.
|
||||
# Bridged networks make the machine appear as another physical device on
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
#!/bin/bash
|
||||
###################################################
|
||||
# NAME
|
||||
# postconfig.sh post configure after vagrant
|
||||
# virtual machine installed for ubuntu
|
||||
# NOTE
|
||||
#
|
||||
###################################################
|
||||
|
||||
iUser="`whoami`"
|
||||
if [ ${iUser} = "root" ];then
|
||||
echo "running user is root, exit now!"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
iHome="/home/vagrant"
|
||||
VAGRANTPATH="/vagrant_data"
|
||||
|
||||
# copy files
|
||||
cp -r ${VAGRANTPATH}/sw ${iHome}
|
||||
|
||||
echo
|
||||
echo "postconfig start."
|
||||
echo
|
||||
echo "-----------------------------------"
|
||||
echo "configure this virtual machine"
|
||||
echo "user:`whoami`, home=$HOME"
|
||||
|
||||
mkdir ${iHome}/github/
|
||||
cd ${iHome}/github/
|
||||
git clone https://github.com/aborn/configure.git
|
||||
chmod u+x ${iHome}/github/configure/configure
|
||||
${iHome}/github/configure/configure
|
||||
|
||||
echo
|
||||
echo "-----------------------------------"
|
||||
echo "configure emacs."
|
||||
git clone https://github.com/aborn/emacs.lite.git
|
||||
chmod u+x ${iHome}/github/emacs.lite/sh/configure
|
||||
${iHome}/github/emacs.lite/sh/configure
|
||||
|
||||
|
||||
echo "postconfig finished."
|
|
@ -30,22 +30,3 @@ if [ ${iUser} = "root" ];then
|
|||
echo "changed user, now: `whoami`"
|
||||
fi
|
||||
|
||||
# copy files
|
||||
cp -r ${VAGRANTPATH}/sw ~
|
||||
|
||||
echo
|
||||
echo "-----------------------------------"
|
||||
echo "configure this virtual machine"
|
||||
mkdir ~/github/
|
||||
cd ~/github/
|
||||
git clone https://github.com/aborn/configure.git
|
||||
chmod u+x ~/github/configure/configure
|
||||
~/github/configure/configure
|
||||
|
||||
echo
|
||||
echo "-----------------------------------"
|
||||
echo "configure emacs."
|
||||
git clone https://github.com/aborn/emacs.lite.git
|
||||
chmod u+x ~/github/emacs.lite/sh/configure
|
||||
~/github/emacs.lite/sh/configure
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
echo "begin posinstall.sh" >> pos.log
|
||||
echo "`date`" >> pos.log
|
||||
echo "---------------------------" >> pos.log
|
||||
/bin/bash /vagrant/postinstall.sh >> pos.log 2>&1
|
||||
/bin/bash /vagrant_data/postinstall.sh >> pos.log 2>&1
|
||||
#/bin/bash /vagrant_data/postconfig.sh >> pos.log 2>&1
|
||||
echo "---------------------------" >> pos.log
|
||||
echo "finish posinstall.sh" >> pos.log
|
||||
echo "`date`" >> pos.log
|
||||
|
|
Loading…
Reference in New Issue