Compare commits

..

12 Commits

Author SHA1 Message Date
569bd41ffb trying again, this time with sudo and charles tasks split in dotfiles repo 2018-03-12 04:26:57 -07:00
bf62148033 Try and fix a permissions issue. 2018-03-12 04:09:18 -07:00
ad525e3fda Try again. 2018-03-12 04:03:26 -07:00
e81c6cd88e streamline charles tasks 2018-03-12 03:55:15 -07:00
bcb141717d run bootstrap from the correct directory 2018-03-12 03:22:11 -07:00
169b92c45d adding docker 2018-03-12 03:05:43 -07:00
91eec5c4ef add deploy krash 2018-03-12 03:02:16 -07:00
83275d9f30 Rewrite script to use absolute paths 2018-03-12 02:49:23 -07:00
0db4f4bd7c fix sudo command to give full path 2018-03-12 02:40:02 -07:00
d83e187534 set -x in deploy script 2018-03-12 02:26:07 -07:00
907a02bebc Merge branch 'master' of git.charlesreid1.com:dotfiles/cloud-init
* 'master' of git.charlesreid1.com:dotfiles/cloud-init:
  Update 'linode/deploy_charlesreid1.com'
  Update 'linode/deploy_charlesreid1.com'
2018-03-12 02:23:37 -07:00
bc106935e4 flatten linode deploy script 2018-03-12 02:23:24 -07:00
2 changed files with 26 additions and 35 deletions

View File

@@ -1,35 +0,0 @@
#!/bin/bash
#
# This is the boot-to-charlesreid1 script
#
# Run it as a one-shot installer:
# bash <( curl https://charlesreid1.com:3000/dotfiles/cloud-init/raw/master/linode/deploy_charlesreid1.com )
# first things first
apt-get install -y git
cd ~
(
mkdir codes
cd codes
(
mkdir dotfiles
cd dotfiles
git clone https://charlesreid1.com:3000/dotfiles/debian.git
(
cd debian
./pre_bootstrap.sh
./make_user_charles.sh
./bootstrap.sh -f
./install_packages.sh
./fix_ssh.sh
./remove_packages.sh
./set_machine_name.sh krash
sudo -H -i -u charles ./charles_tasks.sh
)
)
)

26
linode/deploy_krash.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
#
# This is the boot-to-charlesreid1 script
#
# Run it as a one-shot installer:
# bash <( curl https://charlesreid1.com:3000/dotfiles/cloud-init/raw/master/linode/deploy_krash.sh )
set -x
# first things first
apt-get update
apt-get install -y git
# Get a copy of the dotfiles for the root user
DOTFILES="/root/codes/dotfiles"
mkdir -p $DOTFILES
DEBIAN="$DOTFILES/debian"
git clone https://charlesreid1.com:3000/dotfiles/debian.git $DEBIAN
# Run the root init script
$DEBIAN/tasks_sudo/sudo_init.sh krash
# Copy the charles init script
cp $DEBIAN/tasks_charles/charles_init.sh ~charles/.
chown charles:charles ~charles/charles_init.sh
sudo -H -i -u charles ~charles/charles_init.sh