|
@@ -361,7 +361,7 @@ function restore_local_pleroma {
|
361
|
361
|
function_check restore_directory_from_usb
|
362
|
362
|
restore_directory_from_usb $temp_restore_dir pleroma
|
363
|
363
|
if [ -d $temp_restore_dir ]; then
|
364
|
|
- chown -R www-data:www-data $pleroma_dir/static
|
|
364
|
+ chown -R pleroma:pleroma $pleroma_dir
|
365
|
365
|
rm -rf $temp_restore_dir
|
366
|
366
|
fi
|
367
|
367
|
|
|
@@ -413,7 +413,7 @@ function restore_remote_pleroma {
|
413
|
413
|
function_check restore_directory_from_friend
|
414
|
414
|
restore_directory_from_friend $temp_restore_dir pleroma
|
415
|
415
|
if [ -d $temp_restore_dir ]; then
|
416
|
|
- chown -R www-data:www-data $pleroma_dir/static
|
|
416
|
+ chown -R pleroma:pleroma $pleroma_dir
|
417
|
417
|
rm -rf $temp_restore_dir
|
418
|
418
|
fi
|
419
|
419
|
|
|
@@ -431,6 +431,7 @@ function remove_pleroma {
|
431
|
431
|
systemctl disable pleroma
|
432
|
432
|
rm /etc/systemd/system/pleroma.service
|
433
|
433
|
|
|
434
|
+ userdel pleroma
|
434
|
435
|
apt-get -yq remove esl-erlang elixir
|
435
|
436
|
|
436
|
437
|
function_check remove_nodejs
|
|
@@ -510,7 +511,6 @@ function install_pleroma {
|
510
|
511
|
|
511
|
512
|
# create user
|
512
|
513
|
useradd -d $PLEROMA_DIR -s /bin/false pleroma
|
513
|
|
- adduser pleroma www-data
|
514
|
514
|
|
515
|
515
|
# get the repo
|
516
|
516
|
if [ -d /repos/pleroma ]; then
|