commit 5384f1e0340f0ff9d506a9bcb9324d9fbfb616b0 Author: Frank Schulte Date: Sun Aug 6 18:39:07 2023 +0200 add pve/init.sh diff --git a/pve/init.sh b/pve/init.sh new file mode 100644 index 0000000..a5ba1f2 --- /dev/null +++ b/pve/init.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +unset -v GITEA_TOKEN + +RET=0 + +set -x + +apt update +RET=$(( ${RET} + $? )) + +apt install git +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 ===