Compare commits
12 Commits
c1bc0d8940
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 569bd41ffb | |||
| bf62148033 | |||
| ad525e3fda | |||
| e81c6cd88e | |||
| bcb141717d | |||
| 169b92c45d | |||
| 91eec5c4ef | |||
| 83275d9f30 | |||
| 0db4f4bd7c | |||
| d83e187534 | |||
| 907a02bebc | |||
| bc106935e4 |
@@ -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
26
linode/deploy_krash.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user