Compare commits

..

27 commits

Author SHA1 Message Date
Simon Vieille f19d361d38 Mise à jour de 'scripts/install' 2019-04-26 17:05:06 +02:00
anmol26s cc324108b4
Merge pull request #78 from liberodark/patch-2
Update manifest.json
2019-03-08 13:09:05 +05:30
anmol26s f883c1a80e
Merge pull request #79 from liberodark/patch-3
Update app.src
2019-03-08 13:03:44 +05:30
anmol26s 9aab2b2bd0
Merge pull request #77 from liberodark/patch-1
Update README.md
2019-03-08 13:03:11 +05:30
liberodark 8d23f589d2
Update app.src 2019-02-18 19:08:09 +01:00
liberodark 32cb571814
Update manifest.json 2019-02-18 19:07:04 +01:00
liberodark cc6baaaaaf
Update README.md 2019-02-18 19:06:43 +01:00
anmol26s dae9ba7965
Merge pull request #73 from Taekiro/patch-1
Typo in the installing guide
2019-02-13 00:27:55 +05:30
anmol ee111f67a5 Fixed nginx config 2019-02-08 01:00:42 +05:30
anmol 33a4eabbfd Updated to version 1.2.0 2019-02-08 00:48:54 +05:30
Taekiro 222a1076a2
Typo in the installing guide 2019-02-03 13:51:40 +01:00
anmol 7dc5b679ca Updated to version 1.1.0 2019-01-09 11:38:29 +05:30
anmol26s d083cb7dc6 Fix:local videos not playing https://github.com/YunoHost-Apps/peertube_ynh/issues/65 2018-12-23 21:31:11 +05:30
anmol26s 1b31e5c42a Updated to version 1.1.0 2018-12-11 03:05:24 +05:30
anmol fa0cafeb98 Create data directory if it do not exits while restore 2018-11-22 01:52:42 +05:30
anmol 0c6e247773 Security:Do not open port for the app 2018-11-19 15:19:49 +05:30
anmol 07bdd9d791 Updated to version 1.0.1 2018-10-25 21:41:27 +05:30
liberodark 4e82c4dd55 Updated to version 1.0.0
* Update README.md

* Update manifest.json

* Update app.src

* Update app.src
2018-10-11 22:02:22 +05:30
anmol26s 9de70fe32a Merge branch 'master' into testing 2018-10-10 09:33:20 +05:30
anmol26s 93636c227d
Testing 1.0.0-rc.2 (#49)
* Updated dependencies and typos

* [add] French description

Description is missing in French apps list.

* Updated to version 1.0.0-beta.15

* Fix systemd and redundancy (#46)

* fixed env in systemd

* changed path while creating password

* changed path while creating password

* changed path while creating password

* changed path while creating password

* Path in systemd

* Fixed yarn in upgrade

* Updated to version 1.0.0-beta.16

* Removed reduency from producton.yaml

* Updated to version 1.0.0-rc.2
2018-10-04 05:03:26 +05:30
anmol26s 934475e592
Merge branch 'master' into testing 2018-10-04 05:02:59 +05:30
anmol26s 8c7183befe Updated to version 1.0.0-rc.2 2018-10-04 04:36:09 +05:30
anmol26s 6fc4efb845
Updated to version 1.0.0-beta.16 (#48)
* Updated dependencies and typos

* [add] French description

Description is missing in French apps list.

* Updated to version 1.0.0-beta.15

* Fix systemd and redundancy (#46)

* fixed env in systemd

* changed path while creating password

* changed path while creating password

* changed path while creating password

* changed path while creating password

* Path in systemd

* Fixed yarn in upgrade

* Updated to version 1.0.0-beta.16

* Removed reduency from producton.yaml
2018-10-03 17:07:41 +05:30
anmol26s 52fb7cc948
Merge branch 'master' into testing 2018-10-03 17:07:00 +05:30
anmol26s 64427abbea Removed reduency from producton.yaml 2018-10-03 14:25:36 +05:30
anmol26s 23972243cc Updated to version 1.0.0-beta.16 2018-10-03 14:07:23 +05:30
anmol26s 1bab3c1248
Upgraded to version 1.0.0-beta.15, systemd fix (#47)
* Updated dependencies and typos

* [add] French description

Description is missing in French apps list.

* Updated to version 1.0.0-beta.15

* Fix systemd and redundancy (#46)

* fixed env in systemd

* changed path while creating password

* changed path while creating password

* changed path while creating password

* changed path while creating password

* Path in systemd

* Fixed yarn in upgrade
2018-10-01 04:57:20 +05:30
6 changed files with 51 additions and 56 deletions

View file

@ -4,57 +4,7 @@
[![Install Peertube with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=peertube)<br><br>
=======
Shipped Version: **1.2.0**
# Nodejs branch for servers giving error on yarn install (OVH)
You will have to run few **commands in the terminal to run Peertube**. **Nodejs** will not be installed by **shell** and **passowrd** will not be created by shell. So you have to do these **things manually**.
## Steps for installing
1. Install **nodejs**
$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - <br>
$ sudo apt-get install -y nodejs
1. Install the peertube with **OVH fix** branch.
$ yunohost app --debug install --debug https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix
1. After installation is complete run **yarn install**.
$ cd /var/www/peertube && yarn install --production --pure-lockfile
1. Give proper **permissions** to peertube
$ chown -R peertube:peertube /var/www/peertube
1. **Restart peertube** and check if there is any error message.
$ service peertube restart && journalctl -feu peertube
1. If there is no **error in red** in the last lines of log. Press **ctrl+c** to stop the logs.
1. Go to your **domain** to check if peertube is running and everthing is ok.
1. Change your **root password** by this command:
$ cd /var/www/peertube && NODE_CONFIG_DIR="/var/www/peertube/config/" NODE_ENV=production npm run reset-password -- -u root
Username: **root**
password: **created in above step**
## Updating peertube
1. Stop peertube
$ service peertube stop
1. Upgrade the package:
$ yunohost app upgrade --debug -u https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix peertube
1. After installation is complete run **yarn install**.
$ cd /var/www/peertube && yarn install --production --pure-lockfile
1. Give proper **permissions** to peertube
$ chown -R peertube:peertube /var/www/peertube
1. Start service.
$ service peertube start
Shipped Version: **1.2.1**
## What is Peertube ?
PeerTube is a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly in the web browser, using <a href="https://github.com/feross/webtorrent">WebTorrent</a>.
@ -102,7 +52,7 @@ Want to see in action?
$ sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh
1. Admin username is : **root**.
1. **Admin password** will be sent to the email address given at the time of the installation.
1. **TLS** and **starttls** are disabled for the outgoing mails. If you intent to use email address not hosted on your local server,it's advised to have a proper SMTP configured with tls and starttls settings by editing **/var/www/peertube/config/porduction.yml**.
1. **TLS** and **starttls** are disabled for the outgoing mails. If you intent to use email address not hosted on your local server,it's advised to have a proper SMTP configured with tls and starttls settings by editing **/var/www/peertube/config/production.yml**.
### Update Guide
1. App can be updated by YunoHost **admin web-interface** or with the following command**:

View file

@ -1,5 +1,5 @@
SOURCE_URL=https://github.com/Chocobozzz/PeerTube/releases/download/v1.2.0/peertube-v1.2.0.tar.xz
SOURCE_SUM=2ef5c4d0cf1f0f8a71e0b1f5a5146fbf4a9617ea79f32de618fe3b3c726d8f7e
SOURCE_URL=https://github.com/Chocobozzz/PeerTube/releases/download/v1.2.1/peertube-v1.2.1.tar.xz
SOURCE_SUM=77517c06133704e36b755bdae4f68838221e657ca70a1a40d5c8652655978ed5
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.xz
SOURCE_IN_SUBDIR=true

View file

@ -6,7 +6,7 @@
"en": "Video streaming platform using P2P directly in the web browser, connected to a federated network",
"fr": "Plateforme de diffusion vidéo par P2P directement dans le navigateur, et connectée à un réseau fédéralisé"
},
"version": "1.2.0",
"version": "1.2.1",
"url": "https://github.com/Chocobozzz/PeerTube",
"license": "AGPL-3.0-only",
"maintainer": {

View file

@ -22,7 +22,7 @@ ynh_abort_if_errors
#=================================================
domain=$YNH_APP_ARG_DOMAIN
path_url="/"
path_url="/peertube"
admin_email=$YNH_APP_ARG_EMAIL
admin_pass=$(ynh_string_random 24)
is_public=$YNH_APP_ARG_IS_PUBLIC
@ -138,6 +138,10 @@ ynh_setup_source "$final_path"
cp ../conf/production.yaml "$final_path/config/production.yaml"
touch "$final_path/config/local-production.json"
(
cd "$final_path"
yarn install --production --pure-lockfile
)
#=================================================
# NGINX CONFIGURATION
@ -219,4 +223,28 @@ ynh_add_systemd_config
systemctl enable "$app"
systemctl start "$app"
#=================================================
# CHANGE PEERTUBE ADMIN PASSWORD AFTER INITIAL GEN
#=================================================
# we need to wait for the service to init peertube's database
(
cd "$final_path"
sleep 30
echo $admin_pass | NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production npm run reset-password -- -u root
)
#=================================================
# SEND A README FOR THE ADMIN
#=================================================
message=" $app was successfully installed :)
Please open your $app domain: https://$domain$path_url
The admin username is: root
The admin password is: $admin_pass
If you are facing any problem or want to improve this app, please open a new issue here: https://github.com/YunoHost-Apps/peertube_ynh"
ynh_send_readme_to_admin "$message"

View file

@ -74,6 +74,9 @@ ynh_system_user_create "$app"
#=================================================
# Set right permissions
if [ ! -d "/home/yunohost.app/$app" ]; then
mkdir -p "/home/yunohost.app/${app}/storage"
fi
chown -R "$app":"$app" "/home/yunohost.app/${app}/storage"
#=================================================
@ -82,6 +85,8 @@ chown -R "$app":"$app" "/home/yunohost.app/${app}/storage"
# REINSTALL DEPENDENCIES
#=================================================
# install nodejs
ynh_install_nodejs 8
# add backports for Debian Jessie (required to install ffmpeg)
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
@ -123,6 +128,11 @@ ynh_restore_file "/etc/logrotate.d/$app"
# RESTORE THE LOGROTATE CONFIGURATION
#=================================================
(
cd "$final_path"
yarn install --production --pure-lockfile --silent --cache-folder /var/cache/yarn/
)
# Set right permissions
chown -R "$app":"$app" "$final_path"

View file

@ -98,6 +98,8 @@ ynh_system_user_create "$app"
# INSTALL DEPENDENCIES
#=================================================
# install nodejs
ynh_install_nodejs 8
# add backports for Debian Jessie (required to install ffmpeg)
if [ "$(lsb_release --codename --short)" == "jessie" ]; then
@ -133,6 +135,11 @@ cp -a "$tmpdir/local-production.json" "$final_path/config/local-production.json
# Remove the tmp directory securely
ynh_secure_remove "$tmpdir"
(
cd "$final_path"
yarn install --production --pure-lockfile
)
#=================================================
# NGINX CONFIGURATION