From 8789a87a7fe83d40227b168f8e9bf596fb5157db Mon Sep 17 00:00:00 2001 From: yalh76 Date: Wed, 5 Jun 2019 02:40:03 +0200 Subject: [PATCH 1/3] Apply ovh_fix --- scripts/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 1ddc5bb..5acbe89 100644 --- a/scripts/install +++ b/scripts/install @@ -71,7 +71,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port ynh_print_info --message="Installing dependencies..." # Install nodejs -ynh_install_nodejs --nodejs_version=8 +#ynh_install_nodejs --nodejs_version=8 # Install dependencies ynh_install_app_dependencies $pkg_dependencies @@ -171,7 +171,7 @@ ynh_store_file_checksum --file="$final_path/config/local-production.json" #================================================= pushd "$final_path" - yarn install --production --pure-lockfile + #yarn install --production --pure-lockfile popd #================================================= @@ -211,7 +211,7 @@ yunohost service add $app --description "$app daemon for Peertube" --log "/home/ #================================================= ynh_print_info --message="Starting a systemd service..." -ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Server listening on localhost" +#ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Server listening on localhost" #================================================= # SETUP SSOWAT @@ -238,7 +238,7 @@ ynh_systemd_action --service_name=nginx --action=reload # we need to wait for the service to init peertube's database pushd "$final_path" - echo $admin_pass | NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production npm run reset-password -- -u root + #echo $admin_pass | NODE_CONFIG_DIR="$final_path/config" NODE_ENV=production npm run reset-password -- -u root popd #================================================= From e63f148d9385794be5def96327c4a5daa2495c83 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 6 Jun 2019 00:54:58 +0200 Subject: [PATCH 2/3] fix ovh for upgrade script --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index aef0c55..2be4c8e 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -133,7 +133,7 @@ ynh_add_nginx_config ynh_print_info --message="Upgrading dependencies..." # Install nodejs -ynh_install_nodejs --nodejs_version=8 +#ynh_install_nodejs --nodejs_version=8 # Install dependencies ynh_install_app_dependencies $pkg_dependencies @@ -182,7 +182,7 @@ ynh_store_file_checksum "$final_path/config/production.yaml" #================================================= pushd "$final_path" - yarn install --production --pure-lockfile + #yarn install --production --pure-lockfile popd #================================================= From cb8a1c90a990ac2c34701b456e7e13c53dbf9335 Mon Sep 17 00:00:00 2001 From: nouts Date: Thu, 6 Jun 2019 21:03:08 +0200 Subject: [PATCH 3/3] update readme with ovh command line --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 71e59fb..801eb06 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,12 @@ Want to see in action? ## Installation +Following command line examples have been updated for ovh virtual machine, according to indications in [Chocobozzz/PeerTube#830 (comment)](https://github.com/Chocobozzz/PeerTube/issues/830#issuecomment-425942717) + +**If you are NOT hosted on OVH virtual machine or experiencing `gyp ERR! configure error`, please switch back to [master branch](https://github.com/YunoHost-Apps/peertube_ynh)** + + + ### Guidelines 1. Require **dedicated domain** like **peertube.domain.tld**. @@ -48,22 +54,24 @@ Want to see in action? $ swapon /swapfile $ echo "/swapfile swap swap defaults 0 0" >> /etc/fstab 1. This app is **multi-instance** (you can have more then one PeerTube instance running on a YunoHost server) - 1. If installing on an ovh virtual machine or having `gyp ERR! configure error` please follow the steps indicated in [Chocobozzz/PeerTube#830 (comment)](https://github.com/Chocobozzz/PeerTube/issues/830#issuecomment-425942717) - + ### Installing guide - 1. App can be installed by YunoHost **admin web-interface** or by **running following command**: + 1. App can be installed by **running following commands**: - $ sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh + $ sudo yunohost app install https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix + $ cd /var/www/peertube && sudo yarn install --production --pure-lockfile + $ sudo systemctl restart peertube 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/production.yml**. ### Update Guide - 1. App can be updated by YunoHost **admin web-interface** or with the following command**: + 1. App can be updated with the **following commands**: - $ sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/peertube_ynh peertube - + $ sudo yunohost app upgrade -u https://github.com/YunoHost-Apps/peertube_ynh/tree/ovh_fix peertube + $ cd /var/www/peertube && sudo yarn install --production --pure-lockfile + $ sudo systemctl restart peertube ### Dependencies * NodeJS, PostgreSQL.