Removing etherpad users

This commit is contained in:
Bob Mottram 2016-11-19 23:15:50 +00:00
parent 5b6702c26c
commit a2c375fc92
1 changed files with 1 additions and 1 deletions

View File

@ -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
}