Commit 7f8f6a0a authored by Spctrl's avatar Spctrl

break restore to test stuff

parent ef695e0a
......@@ -90,14 +90,15 @@ 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 $db_name < $final_path/backup/$db_name.sql"
rm -r $final_path/backup
#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;"
#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