Unverified Commit 4ef978e1 authored by Rigel Kent's avatar Rigel Kent
Browse files

update to 1.2.1 with working remote tools

parent 3070768b
#!/bin/sh
/usr/bin/node /var/www/peertube/dist/server/tools/peertube.js $@
......@@ -9,7 +9,7 @@ case "$1" in
configure)
(
cd /var/www/peertube
yarn install --production --pure-lockfile
yarn install --pure-lockfile
chown peertube: -R /var/www/peertube
)
if [ -z "$2" ]; then
......@@ -37,6 +37,8 @@ echo "Bear in mind you still need to copy and edit the config file:"
echo " sudo cp /etc/production.yaml /etc/production.yaml.example"
echo ' sudo $EDITOR /etc/production.yaml'
echo ""
echo "You also need to start services peertube.service depends on (postgresql, redis)"
echo ""
echo "PeerTube does NOT start automatically!"
echo "Please run the following commands if you want to start PeerTube automatically on system boot:"
echo " sudo systemctl enable peertube.service"
......
......@@ -7,8 +7,8 @@ class PeerTube < FPM::Cookery::Recipe
revision 0
homepage 'https://joinpeertube.org/'
source 'https://github.com/Chocobozzz/PeerTube',
:with => 'git',
:tag => 'v1.2.1'
:with => 'git',
:tag => 'v1.2.1'
arch 'amd64'
license 'AGPL-3.0'
......@@ -23,7 +23,7 @@ class PeerTube < FPM::Cookery::Recipe
depends 'nodejs (>= 8)', 'ffmpeg (>= 3)', 'openssl', 'postgresql', 'redis-server', 'yarn (>= 1.5.1)', 'git', 'g++ (>= 5.0)', 'make'
section 'web'
end
provides 'peertube'
replaces 'peertube'
conflicts 'peertube'
......@@ -34,7 +34,7 @@ class PeerTube < FPM::Cookery::Recipe
post_uninstall 'post-uninstall'
def build
sh 'yarn install'
sh 'yarn install --pure-lockfile'
sh 'npm run build'
Dir.glob('**/*').reject{|k| ["CREDITS.md", "LICENSE", "client/dist/",
"client/package.json", "dist", "scripts", "tsconfig.json", "FAQ.md",
......@@ -56,6 +56,12 @@ class PeerTube < FPM::Cookery::Recipe
# default site
var('www/peertube').install Dir['*']
# documentation
share('doc/peertube').install Dir['support/doc/*']
# remote tools (https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/tools.md#remote-tools)
bin.install 'peertube'
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment