Commit b5299f3e authored by Spctrl's avatar Spctrl

/* restore */ Database is created/restored correctly

parent 7f8f6a0a
......@@ -89,16 +89,8 @@ chown -R $app: $final_path
! su - postgres -c "psql -lqt" | cut -d \| -f 1 | grep -ws pleroma_dev || ynh_die "The database $db_name already exists"
chown postgres $final_path/backup
su - postgres -c "psql -c \"create database $db_name\""
su - postgres -c "createuser pleroma"
su - postgres -c "psql -f $final_path/pleroma/config/setup_db.psql"
su - postgres -c "psql $db_name < $final_path/backup/$db_name.sql"
#rm -r $final_path/backup
#=================================================
# SPECIFIC SETUP
#=================================================
#su - $app -c "cd $final_path/pleroma;mix local.rebar --force;mix local.hex --force;MIX_ENV=prod mix ecto.migrate;"
#=================================================
# STANDARD RESTORATION STEPS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment