]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - scripts/ovh_vps_ssd/arch_host_puppet_configuration_script.sh
Move scripts to separate chunks
[perso/Immae/Projets/Puppet.git] / scripts / ovh_vps_ssd / arch_host_puppet_configuration_script.sh
CommitLineData
c15f2234
IB
1#!/bin/bash
2
3git_branch="$1"
4environment="$2"
5
6DEVICE_STR=$(cat /proc/mounts | grep "/dev/[sv]d.. /mnt/")
7DEVICE=$(echo "$DEVICE_STR" | cut -d' ' -f1)
8MOUNTPOINT=$(echo "$DEVICE_STR" | cut -d' ' -f2)
9
10cp /tmp/arch_puppet_configuration_script.sh "$MOUNTPOINT/root/"
11
12/tmp/root.x86_64/bin/arch-chroot "$MOUNTPOINT" /root/arch_puppet_configuration_script.sh "$git_branch" "$environment"
13