Mettre à jour 'peertube/rootfs/usr/local/bin/startup'

This commit is contained in:
Dryusdan 2017-11-03 09:51:58 +00:00
parent 6af112824f
commit cba5cb2219
1 changed files with 2 additions and 5 deletions

View File

@ -19,11 +19,8 @@ sed -i -e 's|<body_size>|'${BODY_SIZE}'|' /etc/nginx/sites-enabled/peertube.conf
chown -R $UID:$GID ./
npm run help
if [ $# -eq 0 ]; then
su - peertube -c "NODE_ENV=production npm start"
su - peertube -c "cd /PeerTube && NODE_ENV=production npm start"
else
su - peertube -c "NODE_ENV=production npm $#"
su - peertube -c "cd /PeerTube && NODE_ENV=production npm $#"
fi