discourse update: take multiple services into account
This commit is contained in:
parent
b472f9624a
commit
7aa56bb5f8
@ -14,6 +14,7 @@ fi
|
|||||||
echo
|
echo
|
||||||
|
|
||||||
basedir=$HOME/discourse
|
basedir=$HOME/discourse
|
||||||
|
services="sidekiq discourse"
|
||||||
patch=$HOME/latest.patch
|
patch=$HOME/latest.patch
|
||||||
# not clear why this is a samplefile
|
# not clear why this is a samplefile
|
||||||
# they seem to do this by hand on the docker repo
|
# they seem to do this by hand on the docker repo
|
||||||
@ -59,8 +60,8 @@ then
|
|||||||
fi
|
fi
|
||||||
RAILS_ENV=production bundle exec rails db:migrate
|
RAILS_ENV=production bundle exec rails db:migrate
|
||||||
|
|
||||||
systemctl restart --user discourse
|
systemctl restart --user $services
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
systemctl status --user discourse
|
systemctl status --user $services
|
Loading…
Reference in New Issue
Block a user