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

Use image password with fedwiki

parent 6df5efed
No related branches found
No related tags found
No related merge requests found
......@@ -553,8 +553,12 @@ function install_fedwiki {
FEDWIKI_ONION_HOSTNAME=$(add_onion_service fedwiki 80 ${FEDWIKI_ONION_PORT})
if [ ! $FEDWIKI_COOKIE ]; then
FEDWIKI_COOKIE="$(create_password 20)"
if [ -f "$IMAGE_PASSWORD_FILE" ]; then
FEDWIKI_COOKIE="$(printf "%s" "$(cat "$IMAGE_PASSWORD_FILE")")"
else
if [ ! "$FEDWIKI_COOKIE" ]; then
FEDWIKI_COOKIE="$(create_password 20)"
fi
fi
cp -r /root/.npm-global/lib/node_modules/wiki /var/lib
......
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