X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=buster%2Fsetup_scripts%2Fsetup_peertube.sh;h=c92be5cc40f9cb405859bfcf0d2dd2e7bae9f184;hb=646a9f2a4e7afefec8ae1bf9d5a4535b99bc6914;hp=5e47f3a45cb6e77f6aac35903bf5431fffaccba3;hpb=6ba68e69ef9bbe917c72040be42ae7421ca755d8;p=config diff --git a/buster/setup_scripts/setup_peertube.sh b/buster/setup_scripts/setup_peertube.sh index 5e47f3a..c92be5c 100755 --- a/buster/setup_scripts/setup_peertube.sh +++ b/buster/setup_scripts/setup_peertube.sh @@ -55,12 +55,10 @@ su -l peertube -c "cd peertube-latest && yarn install --production --pure-lockfi # Configure PeerTube. cp "${config_tree_prefix}/other_files/peertube_production.yaml" /var/www/peertube/config/production.yaml -cp "${config_tree_prefix}/other_files/peertube_db_password.yaml" /var/www/peertube/config/db_password.yaml chown peertube:peertube /var/www/peertube/config/production.yaml -chown peertube:peertube /var/www/peertube/config/db_password.yaml sed -i "s/admin\@example\.com/${mail}/g" config/production.yaml sed -i "s/example\.com/${domain}/g" config/production.yaml -sed -i "s/password: 'REPLACE_ME'/password: '${db_pw}'/g" config/db_password.yaml +sed -i "s/password: 'peertube'/password: '${db_pw}'/g" config/production.yaml # Configure NGINX. cp /var/www/peertube/peertube-latest/support/nginx/peertube /etc/nginx/sites-available/peertube