mirror of
https://github.com/YunoHost-Apps/pleroma_ynh.git
synced 2024-09-03 20:15:59 +02:00
remove SUPERUSER Rights during install
This commit is contained in:
parent
4db78854ba
commit
c91f008273
1 changed files with 0 additions and 7 deletions
|
@ -261,15 +261,8 @@ pushd $final_path/$app
|
|||
sudo -u "$app" MIX_ENV=prod mix local.hex --force
|
||||
sudo -u "$app" MIX_ENV=prod mix local.rebar --force
|
||||
sudo -u "$app" MIX_ENV=prod mix deps.get
|
||||
|
||||
ynh_psql_execute_as_root \
|
||||
"ALTER USER $app WITH SUPERUSER;"
|
||||
|
||||
sudo -u "$app" MIX_ENV=prod mix ecto.migrate --force
|
||||
|
||||
ynh_psql_execute_as_root \
|
||||
"ALTER USER $app WITH NOSUPERUSER;"
|
||||
|
||||
# Add user
|
||||
sudo -u "$app" MIX_ENV=prod mix pleroma.user new "$admin" "$admin_email" --password "$password" --moderator --admin -y
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue