dataset/seed/tls/manual/image/postinstall/tls.sh
2023-02-14 14:24:16 +01:00

11 lines
636 B
Bash

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