Files
scripts/pve/init.sh
Frank Schulte 18f78c82e0 add pve/init.sh
2023-08-06 19:05:29 +02:00

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 ===