forked from cloudron-apps/peertube-app
add missing well_known data storage setting
This commit is contained in:
parent
e86ace516f
commit
73d4a02c4a
1 changed files with 3 additions and 2 deletions
5
start.sh
5
start.sh
|
@ -17,7 +17,6 @@ update_ldap() {
|
|||
first_time_setup() {
|
||||
echo "==> Starting peertube to run migrations on first run"
|
||||
npm start & # be wary of https://stackoverflow.com/questions/70738567/why-does-running-npm-run-script-as-root-switch-user
|
||||
peertube_pid=$!
|
||||
sleep 10
|
||||
|
||||
while ! curl --silent --output /dev/null --fail http://localhost:9000/; do
|
||||
|
@ -25,7 +24,7 @@ first_time_setup() {
|
|||
sleep 5
|
||||
done
|
||||
|
||||
kill -SIGTERM ${peertube_pid} # this kills the process group
|
||||
kill -SIGTERM peertube # this kills the process group
|
||||
|
||||
echo "==> Reset root password"
|
||||
echo "changeme" | npm run reset-password -- -u root
|
||||
|
@ -70,7 +69,9 @@ update_config() {
|
|||
yq eval ".smtp.disable_starttls = true" -i /app/data/production.yaml
|
||||
yq eval ".smtp.from_address = \"${CLOUDRON_MAIL_FROM}\"" -i /app/data/production.yaml
|
||||
|
||||
# ensure settings which were later added
|
||||
yq eval ".storage.bin = \"/app/data/storage/bin/\"" -i /app/data/production.yaml
|
||||
yq eval ".storage.well_known = \"/app/data/storage/well_known/\"" -i /app/data/production.yaml
|
||||
}
|
||||
|
||||
# cd /var/www/peertube/peertube-latest/scripts && sudo -H -u peertube ./upgrade.sh
|
||||
|
|
Loading…
Reference in a new issue