From 24832bc29d5e4cbb8ee803603f0975a6e1df91b2 Mon Sep 17 00:00:00 2001 From: Romain PINSOLLE Date: Mon, 3 Nov 2025 14:57:36 +0000 Subject: [PATCH] fixed --- install/snowshare-install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install/snowshare-install.sh b/install/snowshare-install.sh index b038048ab..98e064a15 100644 --- a/install/snowshare-install.sh +++ b/install/snowshare-install.sh @@ -14,11 +14,10 @@ update_os setup_nodejs -cd /opt fetch_and_deploy_gh_release "snowshare" "TuroYT/snowshare" -msg_info "Setting up PostgreSQL Database" setup_postgresql +msg_info "Setting up PostgreSQL Database" DB_NAME=snowshare DB_USER=snowshare DB_PASS="$(openssl rand -base64 18 | cut -c1-13)" @@ -35,10 +34,10 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';" } >>~/snowshare.creds msg_ok "Set up PostgreSQL Database" -msg_info "Installing SnowShare (Patience)" +msg_info "Installing SnowShare" cd /opt/snowshare $STD npm ci -cat </opt/snowshare/.env +cat <.env DATABASE_URL="postgresql://$DB_USER:$DB_PASS@localhost:5432/$DB_NAME" NEXTAUTH_URL="http://localhost:3000" NEXTAUTH_SECRET="$(openssl rand -base64 32)" @@ -56,9 +55,8 @@ Requires=postgresql.service [Service] Type=simple -User=root WorkingDirectory=/opt/snowshare -EnvironmentFile=/opt/snowshare/.env +EnvironmentFile=.env ExecStart=/usr/bin/npm start Restart=on-failure RestartSec=10