1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/peertube_ynh.git synced 2024-09-03 19:56:29 +02:00
This commit is contained in:
yalh76 2019-12-27 19:47:04 +01:00
parent 76b690e826
commit 10945665e5
2 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ chown -R "$app":"$app" $final_path
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile #sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile
popd popd
#================================================= #=================================================
@ -222,7 +222,7 @@ yunohost service add $app --description "$app daemon for Peertube" --log "/home/
#================================================= #=================================================
ynh_print_info --message="Starting a systemd service..." 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 # SETUP SSOWAT
@ -249,7 +249,7 @@ ynh_systemd_action --service_name=nginx --action=reload
# we need to wait for the service to init peertube's database # we need to wait for the service to init peertube's database
pushd "$final_path" 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 popd
#================================================= #=================================================

View file

@ -206,7 +206,7 @@ chown -R "$app":"$app" $final_path
pushd "$final_path" pushd "$final_path"
ynh_use_nodejs ynh_use_nodejs
sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile #sudo -u $app env PATH=$PATH yarn install --production --pure-lockfile
popd popd
#================================================= #=================================================