File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,28 +8,28 @@ echo "Starting SSH ..."
88ssh-keygen -A
99/usr/sbin/sshd
1010
11- export RAILS_ENV=production
11+ su-exec pwpusher:pwpusher export RAILS_ENV=production
1212
1313echo " "
1414if [ -z " $DATABASE_URL " ]
1515then
1616 echo " DATABASE_URL not specified. Assuming ephemeral backend. Database may be lost on container restart."
1717 echo " To set a database backend refer to https://docs.pwpush.com/docs/how-to-universal/#how-does-it-work"
18- export DATABASE_URL=sqlite3:db/db.sqlite3
18+ su-exec pwpusher:pwpusher export DATABASE_URL=sqlite3:db/db.sqlite3
1919else
2020 echo " According to DATABASE_URL database backend is set to $( echo $DATABASE_URL | cut -d " :" -f 1) :..."
2121fi
2222echo " "
2323
2424echo " Password Pusher: migrating database to latest..."
25- su-exec pwpusher bundle exec rake db:migrate
25+ su-exec pwpusher:pwpusher bundle exec rake db:migrate
2626
2727if [ -n " $PWP__THEME " ] || [ -n " $PWP_PRECOMPILE " ]; then
2828 echo " Password Pusher: precompiling assets for customizations..."
29- su-exec pwpusher bundle exec rails assets:precompile
29+ su-exec pwppwpusher:pwpusherusher bundle exec rails assets:precompile
3030fi
3131
3232echo " Password Pusher: starting puma webserver..."
33- exec su-exec pwpusher bundle exec puma -C config/puma.rb
33+ exec su-exec pwpusher:pwpusher bundle exec puma -C config/puma.rb
3434
3535exec " $@ "
You can’t perform that action at this time.
0 commit comments