1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00

Apply ovh_fix

This commit is contained in:
yalh76 2019-06-05 02:40:03 +02:00
parent dc3bb5c337
commit 8789a87a7f

View file

@ -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
#=================================================