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

Remove lychee user

parent 1e458fcc
No related branches found
No related tags found
No related merge requests found
......@@ -103,6 +103,12 @@ function lychee_create_database {
function remove_user_lychee {
remove_username="$1"
cd "/var/www/${LYCHEE_DOMAIN_NAME}/htdocs/php/database" || exit 27
username_encrypted=$(lychee_hashed_string "$remove_username")
rm /root/.lychee_string.php
run_query_with_output lychee "delete from lychee_settings where username = '${username_encrypted}'"
"${PROJECT_NAME}-pass" -u "$remove_username" --rmapp lychee
}
......
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