Skip to content
Snippets Groups Projects
Commit f20f60a1 authored by Bob Mottram's avatar Bob Mottram
Browse files

Generate akaunting key

parent 46a796dc
No related branches found
No related tags found
No related merge requests found
......@@ -59,13 +59,16 @@ function akaunting_generate_env {
akaunting_url="http://${AKAUNTING_ONION_HOSTNAME}"
fi
akaunting_key_bytes="$(create_random_string 16)$(create_random_string 16)"
akaunting_key=$(echo -n "$akaunting_key_bytes" | base64)
MARIADB_PASSWORD=$("${PROJECT_NAME}-pass" -u root -a mariadb)
{ echo 'APP_NAME=Akaunting';
echo 'APP_ENV=production';
echo 'APP_LOCALE=en-GB';
echo 'APP_INSTALLED=false';
echo 'APP_KEY='
echo "APP_KEY=base64:${akaunting_key}"
echo 'APP_DEBUG=true';
echo 'APP_LOG_LEVEL=debug'
echo "APP_URL=${akaunting_url}";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment