forked from nutomic/peertube.social
fix permissions
This commit is contained in:
parent
b057711a57
commit
345d507e00
2 changed files with 4 additions and 2 deletions
|
@ -39,8 +39,8 @@ services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:10-alpine
|
image: postgres:10-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
|
# POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
|
||||||
POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
|
# POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
|
||||||
POSTGRES_DB: peertube
|
POSTGRES_DB: peertube
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/db:/var/lib/postgresql/data
|
- ./volumes/db:/var/lib/postgresql/data
|
||||||
|
|
|
@ -17,6 +17,8 @@ function sync-volumes {
|
||||||
rsync -a --rsync-path="sudo rsync" "$OLD_SERVER:$OLD_BASE_FOLDER/storage/torrents/" "$NEW_BASE_FOLDER/data/torrents/"
|
rsync -a --rsync-path="sudo rsync" "$OLD_SERVER:$OLD_BASE_FOLDER/storage/torrents/" "$NEW_BASE_FOLDER/data/torrents/"
|
||||||
rsync -a --rsync-path="sudo rsync" "$OLD_SERVER:/var/lib/postgresql/10/main/" "$NEW_BASE_FOLDER/db/"
|
rsync -a --rsync-path="sudo rsync" "$OLD_SERVER:/var/lib/postgresql/10/main/" "$NEW_BASE_FOLDER/db/"
|
||||||
cp db_config/* "$NEW_BASE_FOLDER/db/"
|
cp db_config/* "$NEW_BASE_FOLDER/db/"
|
||||||
|
chown 70:115 volumes/db/ -R
|
||||||
|
chown 999:999 volumes/data/ -R
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$(whoami)" != "root" ]; then
|
if [ "$(whoami)" != "root" ]; then
|
||||||
|
|
Loading…
Reference in a new issue