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

Changing fedwiki password

parent 7a8d22a6
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,11 @@ function change_password_fedwiki {
echo $'Fedwiki password is too short'
return
fi
#${PROJECT_NAME}-pass -u $FEDWIKI_USERNAME -a fedwiki -p "$FEDWIKI_PASSWORD"
${PROJECT_NAME}-pass -u $FEDWIKI_USERNAME -a fedwiki -p "$FEDWIKI_PASSWORD"
sed -i "s|--cookieSecret .*|--cookieSecret '${FEDWIKI_PASSWORD}'|g" /etc/systemd/system/fedwiki.service
systemctl daemon-reload
systemctl restart fedwiki
write_config_param "FEDWIKI_COOKIE" "$FEDWIKI_PASSWORD"
}
function reconfigure_fedwiki {
......
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