Remove pleroma user

This commit is contained in:
Bob Mottram 2017-11-06 13:10:09 +00:00
parent b424e8899e
commit 7994cf979a
1 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,7 @@ function restore_local_pleroma {
function_check restore_directory_from_usb function_check restore_directory_from_usb
restore_directory_from_usb $temp_restore_dir pleroma restore_directory_from_usb $temp_restore_dir pleroma
if [ -d $temp_restore_dir ]; then if [ -d $temp_restore_dir ]; then
chown -R www-data:www-data $pleroma_dir/static chown -R pleroma:pleroma $pleroma_dir
rm -rf $temp_restore_dir rm -rf $temp_restore_dir
fi fi
@ -413,7 +413,7 @@ function restore_remote_pleroma {
function_check restore_directory_from_friend function_check restore_directory_from_friend
restore_directory_from_friend $temp_restore_dir pleroma restore_directory_from_friend $temp_restore_dir pleroma
if [ -d $temp_restore_dir ]; then if [ -d $temp_restore_dir ]; then
chown -R www-data:www-data $pleroma_dir/static chown -R pleroma:pleroma $pleroma_dir
rm -rf $temp_restore_dir rm -rf $temp_restore_dir
fi fi
@ -431,6 +431,7 @@ function remove_pleroma {
systemctl disable pleroma systemctl disable pleroma
rm /etc/systemd/system/pleroma.service rm /etc/systemd/system/pleroma.service
userdel pleroma
apt-get -yq remove esl-erlang elixir apt-get -yq remove esl-erlang elixir
function_check remove_nodejs function_check remove_nodejs
@ -510,7 +511,6 @@ function install_pleroma {
# create user # create user
useradd -d $PLEROMA_DIR -s /bin/false pleroma useradd -d $PLEROMA_DIR -s /bin/false pleroma
adduser pleroma www-data
# get the repo # get the repo
if [ -d /repos/pleroma ]; then if [ -d /repos/pleroma ]; then