Refactor templating and drupal 9 support
This commit is contained in:
parent
eabf4a2ec4
commit
f22e658183
16 changed files with 275 additions and 144 deletions
16
factory/lib/40_utils.sh
Normal file
16
factory/lib/40_utils.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# This is a library file.
|
||||
# It should be 'source'd only, if it is not we bail out here.
|
||||
if [[ "$0" = "$BASH_SOURCE" ]]; then
|
||||
echo "This file should not be executed directly, it should be 'source'd only. "
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Set a few variables to point to the debian frontend
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# This file just sets a few utility functions to be used by the code.
|
||||
# randompw generates a random password as per the configuration file.
|
||||
alias randompw="cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $PASSWORD_LENGTH | head -n 1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue