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

Removing etherpad users

parent 5b6702c2
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ function remove_user_etherpad {
${PROJECT_NAME}-pass -u $remove_username --rmapp etherpad
if grep -q "\"$remove_username\": {" /var/www/${ETHERPAD_DOMAIN_NAME}/htdocs/settings.json; then
sed -i "/\"$remove_username\": {/,/},/d" /var/www/${ETHERPAD_DOMAIN_NAME}/htdocs/settings.json
sed -i "/\"$remove_username\": {/d" /var/www/${ETHERPAD_DOMAIN_NAME}/htdocs/settings.json
systemctl restart etherpad
fi
}
......
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