/etc/one-context.d/99-execute-scripts is in opennebula-context 4.8.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/bash
MOUNT_DIR=/mnt
TMP_DIR=/tmp/one-context-tmp
if [ -z "$INIT_SCRIPTS" ]; then
if [ -f "$MOUNT_DIR/init.sh" ]; then
INIT_SCRIPTS=init.sh
fi
fi
mkdir -p $TMP_DIR
cd $MOUNT_DIR
for f in $INIT_SCRIPTS; do
cp $f $TMP_DIR
chmod +x $TMP_DIR/$f
$TMP_DIR/$f
done
|