From 7994cf979a711031806c8fea100f1ffc3f605ca4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 6 Nov 2017 13:10:09 +0000 Subject: [PATCH] Remove pleroma user --- src/freedombone-app-pleroma | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/freedombone-app-pleroma b/src/freedombone-app-pleroma index 124e11bd..908de921 100755 --- a/src/freedombone-app-pleroma +++ b/src/freedombone-app-pleroma @@ -361,7 +361,7 @@ function restore_local_pleroma { function_check restore_directory_from_usb restore_directory_from_usb $temp_restore_dir pleroma 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 fi @@ -413,7 +413,7 @@ function restore_remote_pleroma { function_check restore_directory_from_friend restore_directory_from_friend $temp_restore_dir pleroma 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 fi @@ -431,6 +431,7 @@ function remove_pleroma { systemctl disable pleroma rm /etc/systemd/system/pleroma.service + userdel pleroma apt-get -yq remove esl-erlang elixir function_check remove_nodejs @@ -510,7 +511,6 @@ function install_pleroma { # create user useradd -d $PLEROMA_DIR -s /bin/false pleroma - adduser pleroma www-data # get the repo if [ -d /repos/pleroma ]; then