Run mix as the pleroma user

This commit is contained in:
Bob Mottram 2018-06-03 11:21:32 +01:00
parent 4050566aa0
commit 86b9ae3e38
1 changed files with 1 additions and 1 deletions

View File

@ -1382,7 +1382,7 @@ function install_pleroma {
systemctl start pleroma
cd $PLEROMA_DIR || exit 1935638
mix register_user "$MY_USERNAME" "$MY_USERNAME" "$MY_EMAIL_ADDRESS" $"Your bio goes here" "$PLEROMA_ADMIN_PASSWORD"
sudo -u pleroma mix register_user "$MY_USERNAME" "$MY_USERNAME" "$MY_EMAIL_ADDRESS" $"Your bio goes here" "$PLEROMA_ADMIN_PASSWORD"
sudo -u pleroma mix set_moderator "$MY_USERNAME" true
APP_INSTALLED=1