36 lines
505 B
Bash
36 lines
505 B
Bash
#!/bin/sh
|
|
|
|
RET=0
|
|
|
|
set -x
|
|
|
|
apt update
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
apt install git --yes
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
mkdir -p /root/repo
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
git clone https://git.amintabh.de/fschulte.de/pve.git /root/repo/pve
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
find /root/repo/pve -type d --print 2>/dev/null
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
cd /root/repo/pve
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
git fetch --all
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
git pull
|
|
RET=$(( ${RET} + $? ))
|
|
|
|
echo "# RET=${RET} - bootstrap.sh finished."
|
|
|
|
exit ${RET}
|
|
|
|
# === END ===
|