Generate secret at correct path

This commit is contained in:
TEC 2022-10-17 21:47:57 +08:00
parent 5bf5186599
commit 646dc1ef16
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 1 additions and 0 deletions

View File

@ -156,6 +156,7 @@ We also need to ensure that a secrets token exists.
#+begin_src sh
if [ ! -e "/opt/emacs-survey/config/secrets.jl" ]; then
printf "\e[34mCreating genie secrets token\e[m\n"
cd /opt/emacs-survey
sudo -u genie julia --project=/opt/emacs-survey -e 'using Genie; Genie.Generator.write_secrets_file()'
fi
#+end_src