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
|
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
|
||||||
|
|
Loading…
Reference in New Issue