dataset/seed/tls/manual/image/postinstall/tls.sh

12 lines
636 B
Bash
Raw Permalink Normal View History

2023-02-14 14:24:16 +01:00
set -e
RISOTTO_PYTHON_PATH="$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/risotto/python/risotto"
RISOTTO_BIN_PATH="$IMAGE_NAME_RISOTTO_IMAGE_DIR_TMP/usr/local/bin"
mkdir -p "$RISOTTO_PYTHON_PATH"
touch $RISOTTO_PYTHON_PATH/__init__.py
cp $IMAGE_DIR_RECIPIENT_IMAGE/postinstall/x509.py $RISOTTO_PYTHON_PATH
cp $IMAGE_DIR_RECIPIENT_IMAGE/postinstall/autosign.py $RISOTTO_PYTHON_PATH
cp $IMAGE_DIR_RECIPIENT_IMAGE/postinstall/letsencrypt.py $RISOTTO_PYTHON_PATH
cp $IMAGE_DIR_RECIPIENT_IMAGE/postinstall/update-certificates $RISOTTO_BIN_PATH
chmod 755 $RISOTTO_BIN_PATH/update-certificates
chown root: $RISOTTO_BIN_PATH/update-certificates