Remove pleroma user
This commit is contained in:
parent
b424e8899e
commit
7994cf979a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue